From 28c0ba0e6d5e108bd297a6a6297218e74c11c5e5 Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Fri, 4 Oct 2024 16:52:26 -0400 Subject: [PATCH] chore: Adjust sample for winui --- .../Flyout/Flyout_ShowAt_Window_Content.xaml.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/Flyout/Flyout_ShowAt_Window_Content.xaml.cs b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/Flyout/Flyout_ShowAt_Window_Content.xaml.cs index 6ecafd6aef04..dd22097616b7 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/Flyout/Flyout_ShowAt_Window_Content.xaml.cs +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/Flyout/Flyout_ShowAt_Window_Content.xaml.cs @@ -15,13 +15,12 @@ namespace UITests.Windows_UI_Xaml_Controls.FlyoutTests [Sample("Flyouts")] public sealed partial class Flyout_ShowAt_Window_Content : Page { - private XamlRoot _xamlRoot; - public Flyout_ShowAt_Window_Content() { this.InitializeComponent(); #if HAS_UNO + XamlRoot _xamlRoot = null; Unloaded += (s, e) => _xamlRoot = XamlRoot; Unloaded += (s, e) => {