Hi,
I want to overwrite VSM behavior on radmenu control, but if I change the ObjectAnimationUsingKeyFrames for ColorAnimation, the control disapears..
for example in your telerik.windows.control.dll I extract the menu.xml and overwrite the template like this:
(in TopLevelHeaderTemplate)
<vsm:VisualState x:Name="Focused">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Bg"
Storyboard.TargetProperty="Fill" Duration="0">
<DiscreteObjectKeyFrame KeyTime="0"
Value="Yellow" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</vsm:VisualState>
to this:
<vsm:VisualState x:Name="Focused">
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="Bg" Duration="0:0:1" To="Red"/>
</Storyboard>
</vsm:VisualState>
after aplying the new template (using RadControl.SetTheme() ), after focusing on the menu item, the whole menu just disapears..
Can you please provide a feedback?
Thanks,
David
I want to overwrite VSM behavior on radmenu control, but if I change the ObjectAnimationUsingKeyFrames for ColorAnimation, the control disapears..
for example in your telerik.windows.control.dll I extract the menu.xml and overwrite the template like this:
(in TopLevelHeaderTemplate)
<vsm:VisualState x:Name="Focused">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Bg"
Storyboard.TargetProperty="Fill" Duration="0">
<DiscreteObjectKeyFrame KeyTime="0"
Value="Yellow" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</vsm:VisualState>
to this:
<vsm:VisualState x:Name="Focused">
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="Bg" Duration="0:0:1" To="Red"/>
</Storyboard>
</vsm:VisualState>
after aplying the new template (using RadControl.SetTheme() ), after focusing on the menu item, the whole menu just disapears..
Can you please provide a feedback?
Thanks,
David