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
{{ message }}
This repository was archived by the owner on May 1, 2024. It is now read-only.
Description
Page doesn't render if init navigation not in constructor
Steps to Reproduce
2 In Xamarin Forms app change method to this
public App()
{
InitializeComponent();
InitApp(); // used for DI
}
protected override async void OnStart()
{
base.OnStart();
await InitNavigation();
OnResume();
}
private static Task InitNavigation()
{
var navigationService = IoC.Container.GetInstance();
return navigationService.InitializeAsync(); // Navigate to page NavigateToAsync()
}
Expected Behavior
Page is rendered on wpf
Actual Behavior
The page can be rendered on WPF if run InitNavigation on Constructor
public App()
{
InitializeComponent();
InitApp();
InitNavigation();
}
protected override async void OnStart()
{
base.OnStart();
OnResume();
}
Basic Information
Screenshots
Reproduction Link