Skip to content

Added null check to DialogHost.ShowInternal#1977

Merged
Keboo merged 1 commit intoMaterialDesignInXAML:masterfrom
Jesus805:master
Jul 13, 2020
Merged

Added null check to DialogHost.ShowInternal#1977
Keboo merged 1 commit intoMaterialDesignInXAML:masterfrom
Jesus805:master

Conversation

@Jesus805
Copy link
Copy Markdown
Contributor

There are scenarios when you would like to Show the DialogHost but not change it's content. I came across this problem when working with Prism Library. I wanted to asynchronously show a Dialog but keep the existing Dialoghost.DialogContent control (which I defined as a Prism region). By setting content to null in Window.ShowDialog(), the content will not be changed.

I am open to discussion if there is a better way of implementing this and I'm happy to provide a sample project if it helps clarify this use case.

@Keboo Keboo added this to the 3.2.0 milestone Jul 13, 2020
@Keboo Keboo merged commit 03c7c72 into MaterialDesignInXAML:master Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants