So OnAppearing(), I am calling InitializeComponent() as you can see in a below details.
public Settings(Item selectedItem)
{
}
protected async override void OnAppearing()
{
base.OnAppearing();
Items = new ObservableCollection<Item>();
Items1 = new ObservableCollection<Item>();
await Task.Delay(500);
InitializeComponent();
InitializeItemsH();
InitializeItems();
BindingContext = this;
}
when I get back to this page by navigating from another page. the app is getting crashed on IOS and windows (start without debugging). [on windows debugging its totally working fine]
as I have used InitializeComponent() here for clear the stack so function will be clickable.
you can check below XAML.
My XAML Page
I have try run the page without frame its totally working fine, but whenever I uncomment the frame component app gets crashed. don’t get understand why its working on IOS and Windows[start without debugging]
Vrushabh Konde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.