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)