diff --git a/src/Uno.UI/UI/Xaml/Controls/Frame/Frame.cs b/src/Uno.UI/UI/Xaml/Controls/Frame/Frame.cs index 569f57515586..701a538ff6ff 100644 --- a/src/Uno.UI/UI/Xaml/Controls/Frame/Frame.cs +++ b/src/Uno.UI/UI/Xaml/Controls/Frame/Frame.cs @@ -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; 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 17939d179210..71ff5314a2d5 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,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.");