Hi, I have implemented two custom FilteringControl(s) using the help in the docs and forums, one of them even need a custom FilterDescriptor. Now I want to mimic the style, even clone the same close button of the default FilteringControl so that it seems to be another control from telerik. Unfortunately I've been searching through the installed .xaml and cannot find the ControlTemplate for the dialog.
I would appreciate much if somebody could tell me where to find it.
7 Answers, 1 is accepted
hey David, I don't work for telerik, but I was just about to open a new ticket here and as you've been working with the gridview's filter maybe you know the answer:
do you think it is possible to mess around with the controls inside that default filtering control popup?
I just wanted to reduce the amount of complexity of that popup for a more friendly user interface
good luck on your issue!
I found this while searching for my solution:
But it only talks about behaviours. Anyway it may help.
@Vitor - Yes, it is possible. You can predefine the template of our FilteringControl. I have create a sample project for you using our Implicit Styles. You can check the predefined template in Themes/Telerik.Windows.Controls.GridView.xaml file (one line 832).
@David - You can use the same approach to check the style of the close button named PART_FilterCloseButton (on line 901).
I've found this in OfficeBlue style theme. Also available in other themes:
Now using this line:
I have the button I want. Now my question is: Is there a way of reference ButtonCloseStyle from the Telerik resource dictionary in order to avoid have to copy all the control template and style?
Also, if done this way, the button would change if theme is change as well.
Thank you very much. I have to test it more as it seem that press behaviour is not inherited, but at least I learned something new.