Mais l'utilisateur à la possibilité de modifier la couleur de fond de mon application. j'aimerais donc binder les properties color de SystemColors.ControlTextBrushKey et SystemColors.HighlightTextBrushKey sur cette couleur de fond via un converter.
Comment puis-je effectuer ce binding ? j'ai bien essayé :
mais VS me retourne "System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Backgroung; DataItem=null; target element is 'SolidColorBrush' (HashCode=62920918); target property is 'Color' (type 'Color')"
Avez vous des idées ?
Merci
Reagrds
A voir également:
Binding sur {x:Static SystemColors.ControlTextBrushKey}