Kinnara / ModernWpf

Modern styles and controls for your WPF applications
MIT License
4.45k stars 446 forks source link

bug: Open ContentDialog in another window #506

Open maksimwest00 opened 2 years ago

maksimwest00 commented 2 years ago

Hello i try create app with two windows: 1) "mainwindow" started with run app and create new window "childwindow" and i set owner for "childwindow" is "mainwindow" like childwindow.Owner = mainwindow; 2) "childwindow" have button and event on click create and open ContentDialog and its works good!

But after Minimize and restore ContentDialog in childwindow closed but if try open again ContentDialog from childwindow he dont open! For repeat it's bug please check my repo: https://github.com/maksimwest00/ModernWpf_ContentDialog_Issue 1) Open app and click on "Start new window" and in childwindow click on "Open Content Dialog" 2) Go back to MainWindow and click Minimize in system buttons 3) Restore from taskbar 4) Done! ContentDialog closed and new click on button dont open another!

I hope you can help me because its really interested problem and idk why . Thanks!