diff --git a/src/Controls/samples/Controls.Sample/Pages/Base/BasePage.cs b/src/Controls/samples/Controls.Sample/Pages/Base/BasePage.cs index 6de9449c44..b4583d393a 100644 --- a/src/Controls/samples/Controls.Sample/Pages/Base/BasePage.cs +++ b/src/Controls/samples/Controls.Sample/Pages/Base/BasePage.cs @@ -24,17 +24,15 @@ namespace Maui.Controls.Sample.Pages.Base ToolbarItems.Add(new ToolbarItem() { - Text = "RTL", + Text = "Settings", + IconImageSource = ImageSource.FromFile("settings.png"), Command = new Command(OnToolbarItemClicked) }); } - private void OnToolbarItemClicked() + void OnToolbarItemClicked() { - if (FlowDirection != Microsoft.Maui.FlowDirection.RightToLeft) - FlowDirection = Microsoft.Maui.FlowDirection.RightToLeft; - else - FlowDirection = Microsoft.Maui.FlowDirection.LeftToRight; + Navigation.PushModalAsync(new SettingsPage()); } protected override void OnAppearing() diff --git a/src/Controls/samples/Controls.Sample/Pages/Core/MultiWindowPage.xaml b/src/Controls/samples/Controls.Sample/Pages/Core/MultiWindowPage.xaml new file mode 100644 index 0000000000..f9c02f5731 --- /dev/null +++ b/src/Controls/samples/Controls.Sample/Pages/Core/MultiWindowPage.xaml @@ -0,0 +1,15 @@ + + + + +