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!>
Thanks for joining our community and helping improve Syncfusion products!
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<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.