I have a PopUp window with a popup control.There is a main window from which this PopUp is displayed. PopUp displays data after processing the query which takes time.So while the data in the PopUp is processing,if I maximise other windows then the PopUp is displayed on the other windows as well.
I have made MainWindow owner of the PopUp window in PopUpWindow.xaml.cs as:
this.Owner = Application.Current.MainWindow;
and I have set "StaysOpen" property of PopUp Window to false.But still issue persists.How to stop PopUp from displaying on other window,if other windows are maximised.
Popup
set propertyVisibility
toCollapsed
. Like this:Visibility="Collapsed"
or in code:MyPopup.Visibility = Visibility.Collapsed;
. – Anatoliy Nikolaev