Welcome to the .NET MAUI feedback portal. We’re happy you’re here! If you have feedback on how to improve the .NET MAUI, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

2
Votes

My PageLayout is like the following


Page: 

<ContentPage>

  <SfTabView TabItemTapped="TabView_OnTabItemTapped">

    <SfTabView.Items>

      <SfTabItem />

   <SfTabView.Items>

  </SfTabView>


  <VerticalStackLayout x:Name="Content">

  </VerticalStackLayout>


</ContentPage>


ContentView:

<ContentView>

  <SfExpander>

  </SfExpander>

</ContentView>


A ContentView gets loaded in Code behind when im TabITemTappedEvent gets fired. 

This ContentView is registered in the ServiceProvicer like 

services.AddSingleton<MyPage>();

services.AddSingleton<MyView>();


On the first navigation everything loads fine. 

But when im navigating the second time Android crashes with following error: 


**System.ObjectDisposedException:** 'Cannot access a disposed object.

Object name: 'Syncfusion.Maui.Core.Platform.LayoutViewGroupExt'.'


Everything loads fine if im commenting out the SfExpander or registering the Page as Transient.