In my WPF application, Need to show a Non-modal window. I am using MVVM Light framework. People are suggesting different libraries to do so but is there any suitable control to do that using MVVM Light or using WPF native library?
Need to keep that non-modal window always on top.
Thanks.
To create a non-modal window you won't have to use a framework. The WPF library has enough possibilities to create it.
The quickest solution is to create a new
Xaml Windowand within the properties of the Xaml Window code, you van specify theTopMostpriority, and set it to true.Once you have created this window it is only a matter of calling it.
new NonModalWindow().Show();And if you do want to make it into a
Modal windowyou can use to following code.new NonModalWindow().ShowDialog(); // wooah a contradiction in the code