Skip to content

Commit

Permalink
Make the Samples runnable (fix missing init and do not use MainPage a…
Browse files Browse the repository at this point in the history
…s it is based on Tabbed page)
  • Loading branch information
tbambuch committed Oct 7, 2024
1 parent 8d207e7 commit 4c2e05e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sample/Sample/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public App()
{
InitializeComponent();

this.MainPage = new MainPage();
this.MainPage = new StandardPage();
}
}
}
2 changes: 1 addition & 1 deletion sample/Sample/Pages/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:samples="clr-namespace:Samples;"
xmlns:samples="clr-namespace:Samples"
x:Class="Samples.MainPage"
Title="ACR UserDialogs">
<TabbedPage.Children>
Expand Down
3 changes: 2 additions & 1 deletion sample/Sample/Platforms/Android/MainApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ public class MainApplication : MauiApplication
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
: base(handle, ownership)
{
Acr.UserDialogs.UserDialogs.Init(this);
}

protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}
}
}

0 comments on commit 4c2e05e

Please sign in to comment.