Skip to content

Commit 3b984d4

Browse files
committed
Fixes the issue with the popup remaining visible (fixed IsOpen in transition from Open to Closed)
Fixes the issue with the popups showing initially then hiding (removed initial state where IsOpened was being set to true only to be set to false).
1 parent 092f551 commit 3b984d4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

MaterialDesignThemes.Wpf/Themes/Generic.xaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -522,12 +522,7 @@
522522
<VisualTransition From="Open" To="Closed">
523523
<Storyboard>
524524
<BooleanAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="IsOpen">
525-
<DiscreteBooleanKeyFrame Value="True" KeyTime="0:0:0" />
526-
<DiscreteBooleanKeyFrame Value="True" KeyTime="0:0:0.3" />
527-
</BooleanAnimationUsingKeyFrames>
528-
<BooleanAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="IsOpen">
529-
<DiscreteBooleanKeyFrame Value="True" KeyTime="0:0:0" />
530-
<DiscreteBooleanKeyFrame Value="True" KeyTime="0:0:0.3" />
525+
<DiscreteBooleanKeyFrame Value="False" KeyTime="0:0:0.3" />
531526
</BooleanAnimationUsingKeyFrames>
532527
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" Storyboard.TargetProperty="Opacity">
533528
<EasingDoubleKeyFrame Value="0.56" KeyTime="0" />
@@ -589,15 +584,14 @@
589584
<VisualState x:Name="Closed">
590585
<Storyboard>
591586
<BooleanAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="IsOpen">
592-
<DiscreteBooleanKeyFrame Value="True" KeyTime="0:0:0" />
593587
<DiscreteBooleanKeyFrame Value="False" KeyTime="0:0:0.3" />
594588
</BooleanAnimationUsingKeyFrames>
595589
</Storyboard>
596590
</VisualState>
597591
</VisualStateGroup>
598592
</VisualStateManager.VisualStateGroups>
599593
<controlzEx:PopupEx IsOpen="False"
600-
PlacementTarget="{Binding ElementName=DialogHostRoot, Mode=OneWay}"
594+
PlacementTarget="{Binding ElementName=DialogHostRoot, Mode=OneWay}"
601595
StaysOpen="True"
602596
AllowsTransparency="True"
603597
PopupAnimation="None"

0 commit comments

Comments
 (0)