Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 4, 2023
1 parent 7be95d4 commit 609a3ec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Expand Up @@ -10,6 +10,6 @@ public partial class Issue17789 : ContentPage
public Issue17789()
{
InitializeComponent();
}
}
}
}
2 changes: 1 addition & 1 deletion src/Controls/src/Core/NavigationPage/NavigationPage.cs
Expand Up @@ -548,7 +548,7 @@ void OnWindowChanged(object sender, EventArgs e)
{
w.Toolbar = null;
}

var flyoutPage = _toolbar.FindParentOfType<FlyoutPage>();
if (flyoutPage != null && flyoutPage.Parent is IWindow)
{
Expand Down
Expand Up @@ -45,15 +45,15 @@ public async Task BackButtonEnabledChangesWithPushPopAndPageChanges()

var flyoutPage = new FlyoutPage();
flyoutPage.Title = "Hello world";
flyoutPage.FlyoutLayoutBehavior = FlyoutLayoutBehavior.Split;
flyoutPage.FlyoutLayoutBehavior = FlyoutLayoutBehavior.Split;
flyoutPage.Flyout = new ContentPage() { Title = "Hello world" };

var first = new NavigationPage(new ContentPage());
var second = new NavigationPage(new ContentPage());

flyoutPage.Detail = first;
flyoutPage.Detail = first;

await CreateHandlerAndAddToWindow<FlyoutViewHandler>(flyoutPage, async (handler) =>
await CreateHandlerAndAddToWindow<FlyoutViewHandler>(flyoutPage, async (handler) =>
{
var navView = (RootNavigationView)GetMauiNavigationView(handler.MauiContext);
Assert.False(navView.IsBackEnabled);
Expand Down
Expand Up @@ -31,8 +31,8 @@ void SetupBuilder()
handlers.AddHandler(typeof(NavigationPage), typeof(NavigationViewHandler));
handlers.AddHandler(typeof(TabbedPage), typeof(TabbedViewHandler));
#endif
handlers.AddHandler(typeof(FlyoutPage), typeof(FlyoutViewHandler));
handlers.AddHandler<Page, PageHandler>();
handlers.AddHandler(typeof(FlyoutPage), typeof(FlyoutViewHandler));
handlers.AddHandler<Page, PageHandler>();
handlers.AddHandler<Window, WindowHandlerStub>();
handlers.AddHandler<Frame, FrameRenderer>();
handlers.AddHandler<Label, LabelHandler>();
Expand Down

0 comments on commit 609a3ec

Please sign in to comment.