From 156c9e8f411b890bf70f67b6a7271e20961ca182 Mon Sep 17 00:00:00 2001 From: Martin Zikmund Date: Tue, 26 Nov 2024 17:16:17 +0100 Subject: [PATCH] chore: Perform the check on Android and iOS only --- src/Uno.UI/UI/Xaml/Controls/Frame/Frame.partial.mux.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI/UI/Xaml/Controls/Frame/Frame.partial.mux.cs b/src/Uno.UI/UI/Xaml/Controls/Frame/Frame.partial.mux.cs index 6ac47f6e52d4..f2e35d210d6e 100644 --- a/src/Uno.UI/UI/Xaml/Controls/Frame/Frame.partial.mux.cs +++ b/src/Uno.UI/UI/Xaml/Controls/Frame/Frame.partial.mux.cs @@ -50,7 +50,7 @@ protected override void OnApplyTemplate() base.OnApplyTemplate(); -#if HAS_UNO +#if HAS_UNO && (__ANDROID__ || __IOS__) // It is not possible to use the WinUI behavior with a NativeFramePresenter. // We have two such presenters - on internal in Uno, another in Uno.Toolkit. if (_useWinUIBehavior && this.TemplatedRoot?.GetType().Name?.Contains("NativeFramePresenter", StringComparison.Ordinal) == true)