How to open child windows under parent window in menu item click in WPF?

I am developing an application in C #. I am using .Net under WPF. I want to open a new child window (for example, a dialog) and open it in the main window, just below the menu bar.

However, recently opened windows simply show the OS taskbar. How to open various windows (for example, a dialog box) in the main window?

+4
source share
1 answer

Try it.

MyChildWindow cw = new MyChildWindow(); cw.ShowInTaskbar = false; cw.Owner = Application.Current.MainWindow; cw.Show(); 
+11
source

All Articles