Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested dialog not visible after closing and reopening parent dialog #3735

Open
Yoooi0 opened this issue Nov 29, 2024 · 0 comments
Open

Nested dialog not visible after closing and reopening parent dialog #3735

Yoooi0 opened this issue Nov 29, 2024 · 0 comments
Labels
bug evaluation required Items is pending review or evaluation by the team

Comments

@Yoooi0
Copy link
Contributor

Yoooi0 commented Nov 29, 2024

Bug explanation

When you close a parent dialog which has a nested dialog open, the nested dialog becomes invisible the next time you open the parent dialog, it prevents all input because only the nested dialog PART_ContentCoverGrid is visible:

with.transitions.mp4

This seems to work fine with TransitionAssist.DisableTransitions="True":

without.transitions.mp4

Steps:

  • Open Root dialog
  • Root dialog opens Inner dialog
  • Close Root dialog
  • Reopen Root dialog
    public RootDialog RootDialog { get; } = new();

    public MainWindow()
    {
        InitializeComponent();

        _ = Application.Current.Dispatcher.InvokeAsync(async () =>
        {
            await Delay();
            _ = DialogHost.Show(RootDialog);
            await Delay();
            RootDialog.OpenInnerDialog();
            await Delay();

            DialogHost.GetDialogSession(null)!.Close();

            await Delay();
            _ = DialogHost.Show(RootDialog);
        });

        static Task Delay() => Task.Delay(2000);
    }

I'm not sure if this is even desired behavior, I assumed that all nested dialogs would close when parent is closed.
Hope I described the issue clearly, its a little bit hard to explain.

Version

5.1.0

@Yoooi0 Yoooi0 added bug evaluation required Items is pending review or evaluation by the team labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug evaluation required Items is pending review or evaluation by the team
Projects
None yet
Development

No branches or pull requests

1 participant