I have an animation that expand / collapse some StackPanel
s, in the window there are some ToggleButton
s 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 hides 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?