In my application I apply the Windows7 theme by setting
in the creation of the main window.
Unfortunately it is not clear to the end-user which columns have filters on them, so I thought about styling it. I found this thread on the forum where some things are explained.
I set to work and copied DistinctFilterControl.xaml and GridViewHeaderCell.xaml from the Windows7 theme source directory and adjusted them to my satisfaction. I can apply the GridViewHeaderCellStyle to the column by using
So far so good. Now I want, of course, the style automatically applied to all data columns in my application. Is it possible to tweak this into the used theme? Or would it mean I have to create a complete new theme (e.g., Windows7bis)? Or is there a way to make a custom datacolumn that has this header style automatically applied? Or...
I don't want to end up with an application with half of the columns having my new style of funnel and the rest with the original themed funnel (because I forgot to set some property).
Thanks in advance.
StyleManager.ApplicationTheme =
new
Windows7Theme();
Unfortunately it is not clear to the end-user which columns have filters on them, so I thought about styling it. I found this thread on the forum where some things are explained.
I set to work and copied DistinctFilterControl.xaml and GridViewHeaderCell.xaml from the Windows7 theme source directory and adjusted them to my satisfaction. I can apply the GridViewHeaderCellStyle to the column by using
<
telerik:GridViewDataColumn
HeaderCellStyle
=
"{StaticResource CustomGridViewHeaderCellStyle}"
/>
So far so good. Now I want, of course, the style automatically applied to all data columns in my application. Is it possible to tweak this into the used theme? Or would it mean I have to create a complete new theme (e.g., Windows7bis)? Or is there a way to make a custom datacolumn that has this header style automatically applied? Or...
I don't want to end up with an application with half of the columns having my new style of funnel and the rest with the original themed funnel (because I forgot to set some property).
Thanks in advance.