Skip to content

Commit

Permalink
Fix issue with flyouts created in CommandBarFlyout not closing when c…
Browse files Browse the repository at this point in the history
…ommandbar closes (microsoft/microsoft-ui-xaml#3079)
  • Loading branch information
Kinnara committed Aug 17, 2020
1 parent 31b4427 commit 468801a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ModernWpf.Controls/CommandBarFlyout/CommandBarFlyout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ public CommandBarFlyout()
Hide();
m_isClosingAfterCloseAnimation = false;
});
commandBar.IsOpen = false;
}
// Close commandbar and thus other associated flyouts
commandBar.IsOpen = false;

//CommandBarFlyoutCommandBar.Closed will be called when
//clicking the more (...) button, we clear the translations
Expand Down
2 changes: 1 addition & 1 deletion test/ModernWpfTestApp/CommandBarFlyoutPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<ui:AppBarButton x:Name="ProofingButton" AutomationProperties.AutomationId="ProofingButton" Label="Proofing" Click="OnElementClicked">
<ui:AppBarButton.Flyout>
<ui:MenuFlyout>
<MenuItem Header="talk" />
<MenuItem AutomationProperties.Name="FirstFlyoutItem" Header="talk" />
<MenuItem Header="talks" />
<MenuItem Header="talk a" />
<Separator />
Expand Down

0 comments on commit 468801a

Please sign in to comment.