DataGridColumnHeader style

Oct 7, 2008 at 10:03 AM
Hi,$0$0$0$0 I've defined myself a new DataGridColumnHeader style. Declaration looks like this:$0$0$0$0$0 <Style TargetType="toolkit:DataGridColumnHeader" BasedOn="{StaticResource {x:Type toolkit:DataGridColumnHeader}}">$0$0$0$0$0$0 All is fine, except i loose the small arrow that indicates the sorting direction. Is anyone aware of this issue ?$0$0$0$0$0Regards,$0$0Calin$0
Coordinator
Oct 7, 2008 at 9:16 PM
Could you be a little more specific about what your Style does.  Also, did you mean for the BasedOn to be another style resource?
Oct 8, 2008 at 7:37 AM
Hi,$0$0$0$0 Here is my full style definition$0$0$0$0$0$0<Style TargetType="toolkit:DataGridColumnHeader" BasedOn="{StaticResource {x:Type toolkit:DataGridColumnHeader}}">$0$0        <Setter Property="Background" Value="{StaticResource LightBrush}" />$0$0        <Setter Property="BorderBrush" Value="{StaticResource NormalBorderBrush}" />$0$0        <Setter Property="BorderThickness" Value="1" />$0$0        <Setter Property="MinHeight" Value="25" />$0$0        <Setter Property="VerticalContentAlignment" Value="Center" />$0$0        <Setter Property="Padding" Value="5,0,5,0" />$0$0        <Style.Triggers>$0$0            <Trigger Property="IsMouseOver" Value="true">$0$0                <Setter Property="Background" Value="{StaticResource HoverBackgroundBrush}"/>$0$0            </Trigger>$0$0            <Trigger Property="IsPressed" Value="true">$0$0                <Setter Property="Background" Value="{StaticResource PressedBrush}"/>$0$0                <Setter Property="Margin" Value="1,1,0,0"/>$0$0            </Trigger>$0$0            <Trigger Property="IsEnabled" Value="false">$0$0                <Setter Property="Foreground"$0$0                      Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>$0$0            </Trigger>$0$0        </Style.Triggers>$0$0    </Style>$0$0$0$0$0I use base on to derive from default style in Wpftoolkit/Generic.xaml$0$0What I basicly do in my style is change some coloros. $0$0The issue as I said in the first post, is that the sorting arrow does not appear. I've also try to copy paste the style from Generic.xaml and add the background color, same effect no sorting arrow.$0$0$0$0$0Thank you,$0$0
Coordinator
Oct 16, 2008 at 2:43 PM
See this thread, http://www.codeplex.com/wpf/Thread/View.aspx?ThreadId=37625.