I have purchased a WPF theme, which integrates fine with my app. I've had to override (if that's the right phrase) some of the controls to get it to behave in the way I want. i.e. for the Datagid I have this in the xaml of the page to change the behaviour of this instance of the grid:
Now I have the code for the theme and they override the expander themselves to change the way it looks, but unfortunately I've lost the animated effect from the ActiPro expander. I've tried several things in their theme xaml, but I can't seem to get the animation back. I'm guessing I'm losing some kind of inheritance in the override they make.
This is the ControlTemplate section of the theme:Can anyone suggest any help here?
BTW I'm not what you would call an experienced WPF developer, so please go easy with any replies.
Thanks, Mike...
<dg:DataGrid.Resources>
<Style TargetType="{x:Type dg:DataGrid}">
<Setter Property="Background" Value="Black"/>
<Setter Property="RowBackground" Value="Black"/>
</Style>
</dg:DataGrid.Resources>
This is the ControlTemplate section of the theme:
<Style TargetType="{x:Type shared:AnimatedExpander}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type shared:AnimatedExpander}">
<!-- Removed <Grid> section from here for brevity -->
<ControlTemplate.Triggers>
<Trigger Property="IsExpanded" Value="True">
<Setter TargetName="ContentRow" Property="Height" Value="{Binding ElementName=Content,Path=DesiredHeight}" />
<Setter TargetName="Border1" Property="CornerRadius" Value="6,6,0,0" />
<Setter TargetName="Border2" Property="CornerRadius" Value="6,6,0,0" />
<Setter TargetName="Border2" Property="BorderThickness" Value="0,0,1,0" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="Border1" Property="Background" Value="{StaticResource DisabledBackgroundBrush}" />
<Setter TargetName="Border1" Property="BorderBrush" Value="{StaticResource DarkEdgeBrush}" />
<Setter Property="Foreground" Value="{StaticResource TextBrushDisabled}"/>
<Setter Property="Label.BitmapEffect" TargetName="HeaderLabel">
<Setter.Value>
<OuterGlowBitmapEffect GlowColor="#FF000000" GlowSize="0"/>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
BTW I'm not what you would call an experienced WPF developer, so please go easy with any replies.
Thanks, Mike...