Skip to content

System.ObjectDisposedException while navigating between view pages #13

@Dk977

Description

@Dk977

System.ObjectDisposedException: 'Cannot access a disposed object.
Object name: 'Microsoft.Maui.Platform.ContentViewGroup'.'

while navigating from one view to another view app is crashing with the above exception

<cv:CarouselViewControl x:Name="carouselView"
BindingContext="{Binding .}" VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand" Grid.Row="0" IsSwipeEnabled="false">

 <cv:CarouselViewControl.ItemsSource>
     <x:Array Type="{x:Type View}">
         <dwviews:DrawingView/>
         <wbsviews:WBSNodeView BindingContext="{Binding WBSDetailsViewModel}" />
         <Frame Padding="0" Margin="0" BackgroundColor="Transparent">
             <dgViews:MasterDatagridView BindingContext="{Binding SMasterDatagridViewModel}"></dgViews:MasterDatagridView>
         </Frame>

     </x:Array>
 </cv:CarouselViewControl.ItemsSource>

</cv:CarouselViewControl>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions