I have an animation that expand / collapse some StackPanels, in the window there are some ToggleButtons that must be unchecked when the StackPanel is collapsed. I have the animation like this:
<Storyboard x:Key="cmdUnchecked">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="StackPanel1" Storyboard.TargetProperty="(FrameworkElement.Height)">
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="37"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
This hide the StackPanel, but I need to Uncheck the ToggleButton from other events.
Is it possible to Uncheck the ToggleButton From this StoryBoard?
An if so, do I need to verify if it's already checked / unchecked?