Skip to content

Commit

Permalink
chore: Small adjustment to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Nov 25, 2024
1 parent 41b83d1 commit 080ff86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Uno.UI/UI/Xaml/Controls/Frame/Frame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Media.Animation;
using Microsoft.UI.Xaml.Navigation;
using Uno.Disposables;
using Uno.UI;
using Uno.UI.Helpers;
using Uno.UI.Xaml.Core;
Expand Down
3 changes: 2 additions & 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,9 +50,10 @@ protected override void OnApplyTemplate()
base.OnApplyTemplate();

#if HAS_UNO
// 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)
{
// It is not possible to use the WinUI behavior with a NativeFramePresenter.
if (this.Log().IsEnabled(LogLevel.Error))
{
this.Log().LogError("WinUI Frame behavior is not compatible with NativeFramePresenter. Set the Frame.Style to '{StaticResource XamlDefaultFrame}' instead.");
Expand Down

0 comments on commit 080ff86

Please sign in to comment.