Dear All
I've just spent a while trying to get a hand-authored theme (basically identical to SimpleTheme, but in my assembly) to work with the grid, but without success.
I can reference the SimpleTheme class in Telerik.Windows.Controls.UI.Simple and my grid reflects this theme, but if I copy the theme into my project (after fixing up namespaces etc.) and setting the Theming.Theme attached property on the grid to point to my derived class of Theme, I end up with a completely blank grid.
I have two ideas as to why this is happening:
- Assemblies containing themes authored by Telerik are signed with a strong name key
- The syntax I am using to set up the ThemeResourceKey that points a particular style at a particular part of the grid is incorrect. The following example is from Telerik code:
x:Key="{telerik:ThemeResourceKey ThemeType=telerik:SummerTheme, ElementType=grid:GridViewItemsControl}"
and I'm a bit surprised that ThemeType is assigned like this using just a string. I've done the same, using the namespace of the class I have which is derived from Theme, but without success.
Can you provide us with a step-by-step guide to hand authoring themes for the Grid, or is this currently not possible?
In the meantime, we are going to continue styling the grid without unifying this into a Theme.
Regards
Chris
I've just spent a while trying to get a hand-authored theme (basically identical to SimpleTheme, but in my assembly) to work with the grid, but without success.
I can reference the SimpleTheme class in Telerik.Windows.Controls.UI.Simple and my grid reflects this theme, but if I copy the theme into my project (after fixing up namespaces etc.) and setting the Theming.Theme attached property on the grid to point to my derived class of Theme, I end up with a completely blank grid.
I have two ideas as to why this is happening:
- Assemblies containing themes authored by Telerik are signed with a strong name key
- The syntax I am using to set up the ThemeResourceKey that points a particular style at a particular part of the grid is incorrect. The following example is from Telerik code:
x:Key="{telerik:ThemeResourceKey ThemeType=telerik:SummerTheme, ElementType=grid:GridViewItemsControl}"
and I'm a bit surprised that ThemeType is assigned like this using just a string. I've done the same, using the namespace of the class I have which is derived from Theme, but without success.
Can you provide us with a step-by-step guide to hand authoring themes for the Grid, or is this currently not possible?
In the meantime, we are going to continue styling the grid without unifying this into a Theme.
Regards
Chris