You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a newbie, but I followed the official documentation for FreshMvvm on how to Customise Navigation Pages. It looks like the override function for CreateContainerPage does not work.
Here is my code
Customized navigation container
internal class CustomNavigationPage : FreshMvvm.Maui.FreshNavigationContainer
{
public CustomNavigationPage(Page page) : base(page)
{
}
protected override Page CreateContainerPage(Page page)
{
var container = new NavigationPage(page);
container.BarBackgroundColor = Color.FromArgb("#FF0000");
return container;
}
}
And app.xaml.cs
public App()
{
InitializeComponent();
var mainPage = FreshPageModelResolver.ResolvePageModel<TestPage1PageModel>();
// var mainContainer = new FreshNavigationContainer(mainPage);
var mainContainer = new CustomNavigationPage(mainPage);
MainPage = mainContainer;
}
The text was updated successfully, but these errors were encountered:
Hi,
I am a newbie, but I followed the official documentation for FreshMvvm on how to Customise Navigation Pages. It looks like the override function for CreateContainerPage does not work.
Here is my code
Customized navigation container
internal class CustomNavigationPage : FreshMvvm.Maui.FreshNavigationContainer
{
And app.xaml.cs
The text was updated successfully, but these errors were encountered: