This is a migrated thread and some comments may be shown as answers.

[Solved] Selected Item Brush for Filter ComboBox

2 Answers 81 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 13 Aug 2013, 02:04 PM
I would like the name of the brushes associated with the filter combo boxes. Specifically those for the selected item backgrounds.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 15 Aug 2013, 01:29 PM
Hello David,

Thank you for using RadControls for Windows 8!

There are two ways to style the ComboBox in the Filtering Flyout:

  1. You can explicitly define a custom style in the resources of the RadDataGrid. I have attached a sample application that uses the default style of that element - you can paste it in your code and customize it with your own brushes. Note that you have to add an instance of the PaletteInitializer class to your page resources before you can use the predefined Telerik brushes.

  2. You can globally change the style of all ComboBoxes in your application by defining custom resource in the App.xaml file, for example:

    <SolidColorBrush x:Key="ComboBoxItemPointerOverBackgroundThemeBrush" Color="Green"/>

    In the attached project you can see the names of the brushes that style the ComboBox (e.g. the selection brush is TelerikSelectedBrush).

I hope this helps. Let us know if there is anything else we can assist you with.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
David
Top achievements
Rank 1
answered on 15 Aug 2013, 03:54 PM
Thank you very much. With the zip file you attached, I was able to find the answer.

In case anyone needs to know, the brush is this:

<SolidColorBrush x:Key="TelerikSelectedBrush" Color="{StaticResource MyColor}"/>
Tags
Grid for XAML
Asked by
David
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
David
Top achievements
Rank 1
Share this question
or