0

I'm developing a WPF with C#, .NET Framework 4.6.1, Prism 6.1.0 and Visual Studio 2015 Community.

I'm new in WPF and I'm having a lot of problems to follow MVVM pattern.

I have asked this SO question, but it seems that it doesn't have an answer. And searching on Internet I'm finding solutions to my problem but they are very complex.

Is it correct to create an UserControl to simulate a blocking window and add it to my current window?

Or maybe, it's better to have two windows, and open it following like they did in this tutorial.

Community
  • 1
  • 1
VansFannel
  • 45,055
  • 107
  • 359
  • 626

1 Answers1

0

Personally I would use the UC approach and not mess around with Windows all over the place,
chances are there will be more than one window, then you would have to check which one should be on top and sometimes your application will hide the popup for no apparent reason.
You could place that User Control in your MainWindow.xaml and catch every event or message from your application and display it to the user.
From maintenance point of view UserControl will be as maintainable as Window however, when it comes to having control over your display is basically painless, compared to Window.

XAMlMAX
  • 2,268
  • 1
  • 14
  • 23