Skip to content

Commit

Permalink
(GH-3367) Fix for Normal visual state of TransitioningContentControl
Browse files Browse the repository at this point in the history
The TransitioningContentControl sets the Visibility at this visual state to collapsed which is wrong. It should only set the opacity to 0.
  • Loading branch information
punker76 committed Apr 29, 2019
1 parent b08fe74 commit 32d263c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/MahApps.Metro/Themes/TransitioningContentControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,11 @@

<VisualState x:Name="Normal">
<Storyboard>
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00"
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="PreviousContentPresentationSite"
Storyboard.TargetProperty="(UIElement.Visibility)">
<DiscreteObjectKeyFrame KeyTime="00:00:00">
<DiscreteObjectKeyFrame.Value>
<Visibility>Collapsed</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
Storyboard.TargetProperty="(UIElement.Opacity)">
<LinearDoubleKeyFrame KeyTime="00:00:00" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>

Expand Down

0 comments on commit 32d263c

Please # to comment.