Skip to content

Commit

Permalink
chore: Perform the check on Android and iOS only
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund authored Nov 26, 2024
1 parent f908854 commit 156c9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Controls/Frame/Frame.partial.mux.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 156c9e8

Please sign in to comment.