0

I've a WPF application that makes use of AvalonDock for opening multiple tabs ...each tab represents a function and has it's own controls .. The single tab is opened via menu.

Sometimes I need to show a window in the current tab and I use the

MyWindow w = new MyWindow();
w.Show(); //w.ShowDialog();

this opens a popup(/modal) but when I switch the tab (in the case it's not modal) I have the Window still open... what I need is to "force" the window to be shown only in it's tab.

I've tried setting the Owner of the window but when I do

 var wnd = Window.GetWindow(docuentPane);

I got the main window of the app...

is it possible to do what I want to achieve in WPF? if yes how? Thanks in advance

Nikhil Agrawal
  • 47,018
  • 22
  • 121
  • 208
advapi
  • 3,661
  • 4
  • 38
  • 73

0 Answers0