Greetings,
I am attempting to do some custom styling based on the Simple theme. I looked over the example provided on this post (http://www.telerik.com/community/forums/thread/b311D-bkeeck.aspx) however it does not work with the latest builds of the WPF gridview control.
Specifically I am having trouble styling the GridViewHeaderRow (or GridViewHeaderCell) and the row selectors (I haven't found the object name for these yet).
The following is a small piece of code from the styling: (Note the dark blue is for testing purposes, end goal is a gradient brush)
In the example above, the GridViewRow style changes work as expected. However the GridViewHeaderRow and GridViewHeaderCell styles have no impact.
Any guidance would be greatly appreciated!
Thanks,
Chris
I am attempting to do some custom styling based on the Simple theme. I looked over the example provided on this post (http://www.telerik.com/community/forums/thread/b311D-bkeeck.aspx) however it does not work with the latest builds of the WPF gridview control.
Specifically I am having trouble styling the GridViewHeaderRow (or GridViewHeaderCell) and the row selectors (I haven't found the object name for these yet).
The following is a small piece of code from the styling: (Note the dark blue is for testing purposes, end goal is a gradient brush)
<Window x:Class="radGridStyling.Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:radGrid="http://schemas.telerik.com/2008/xaml/presentation" |
xmlns:Simple="clr-namespace:Telerik.Windows.Controls.Simple;assembly=Telerik.Windows.Controls.Simple" |
Title="Window1" Height="401" Width="654" > |
<Window.Resources> |
<Style TargetType="{x:Type radGrid:GridViewRow}" > |
<Style.Triggers> |
<DataTrigger Binding="{Binding IsAlternating}" Value="False"> |
<DataTrigger.Setters> |
<Setter Property="Background" Value="#ABD5F3" /> |
</DataTrigger.Setters> |
</DataTrigger> |
<DataTrigger Binding="{Binding IsAlternating}" Value="True"> |
<DataTrigger.Setters> |
<Setter Property="Background" Value="#CAEEFE" /> |
</DataTrigger.Setters> |
</DataTrigger> |
</Style.Triggers> |
</Style> |
<Style TargetType="{x:Type radGrid:GridViewHeaderRow}" > |
<Setter Property="Background" Value="DarkBlue" /> |
</Style> |
<Style TargetType="{x:Type radGrid:GridViewHeaderCell}" > |
<Setter Property="Background" Value="DarkBlue" /> |
</Style> |
</Window.Resources> |
<Grid> |
<radGrid:RadGridView Margin="26,22,79,43" Name="radGridView1" > |
<radGrid:Theming.Theme> |
<Simple:SimpleTheme/> |
</radGrid:Theming.Theme> |
</radGrid:RadGridView> |
</Grid> |
</Window> |
In the example above, the GridViewRow style changes work as expected. However the GridViewHeaderRow and GridViewHeaderCell styles have no impact.
Any guidance would be greatly appreciated!
Thanks,
Chris