Skip to content

Commit

Permalink
chore: Adjust for uno only
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Oct 4, 2024
1 parent a65da3b commit 81d69be
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ public Flyout_ShowAt_Window_Content()
{
this.InitializeComponent();

#if HAS_UNO
Unloaded += (s, e) => _xamlRoot = XamlRoot;
Unloaded += (s, e) =>
{
// close all popups at the end of the test.
VisualTreeHelper.CloseAllPopups(_xamlRoot);
};
#endif
}

private void ButtonButton_Click(object sender, RoutedEventArgs e)
Expand Down

0 comments on commit 81d69be

Please sign in to comment.