Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1150
Bind to brushes from the current theme
posted

Hello,

users of my application can change the theme at runtime.
How can I bind to theme specific brushes by XAML
like it is possible with system colors using {DynamicResource {x:Static SystemColors.SomeBrushKey}} 

Where can I find a list of available named brushes?

Thank you.

Parents
  • 22015
    posted

    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.

Reply Children