Hello,
users of my application can change the theme at runtime.How can I bind to theme specific brushes by XAMLlike it is possible with system colors using {DynamicResource {x:Static SystemColors.SomeBrushKey}}
Where can I find a list of available named brushes?
Thank you.
Hello J_Feuerstein,
Thank you for your post!
I have been looking into your question. You can see the default brushes from the default styles of the controls. There is a folder 'DefaultStyles', that you can find on your computer, under the following directory: C:\Program Files (x86)\Infragistics\2014.1\WPF\DefaultStyles.
There is a separate folder for the different controls.
For the XamDataPresenter, for example, there is a separate file, containing the brushes: "DataPresenterGeneric_Brushes.xaml". For other controls like XamDataTree, the brushes are in the 'generic.xaml' file.
Please do not hesitate to let me know if you have any further questions on this matter.
Hello Gergana,
thank you for the reply.When I understood correct, you gave me the hint where I can find the brush key names.
What I am missing is how to access the actual value of a particular named brush from the current theme. I need to access something like ThemeManager.CurrentTheme.GetBrush(ControlBackgroundBrush)
Very concrete I want to bind the background brush of an expander control to the current background brush of the XamDataGrid cell when hovered.
Thank you for any hint.