MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
15.18k stars 3.43k forks source link

Using the DialogHost.Show() pop-up box causes the TabItem to be destroyed #3164

Closed luy710 closed 1 year ago

luy710 commented 1 year ago

Bug explanation

There is a menu button on the main page, click to open the tab page, and there is a button click in the tab page Use DialogHost.Show() to pop up the box, causing the TabItem to be destroyed

code: https://github.com/luy710/TestDialogBug

Version

4.6.1

nicolaihenriksen commented 1 year ago

@luy710 There were some changes in this area in recent releases. Have you tried with a newer version of MaterialDesignThemes? I tried your test app, but it looks a bit strange. Upgrading to the newer version did however seem to have some effect. Can you verify if that solves it on your end? Thanks.

I think you may be experiencing the same issue as this bug which was fixed: #3094

image
luy710 commented 1 year ago

@nicolaihenriksen Thank you very much, after upgrading to the latest version, the problem is perfectly solved!