Skip to content

Navigator.BackAsync exception when getting back from modal to another modal #64

@Mateusz-Nejman

Description

@Mateusz-Nejman

Hi! I have some modals and for one case I have to open one modal from another. It work fine, but when I use Navigator.BackAsync, I'm getting exception:
The control Pixed.Application.Windows.PaletteWindow (Content = DockPanel) already has a visual parent AvaloniaInside.Shell.StackContentView (Name = PART_Modal) while trying to add it as a child of AvaloniaInside.Shell.StackContentView (Name = PART_ContentView).'
PaletteWindow is a parent modal. Exception is thrown in StackContentView::PushViewAsync#L64. I locally added catch to try/finally for ignoring this exception and it works, but its temporary workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions