WPF + PRISM - shows a modal popup with controls in it?

I follow the Prism command "Stock Trader RI" example, but this does not apply to this:

I have a Shell with a main region .

In this shell, I have several filter fields and a grid.

When I click on the button - I want to load a screen that allows me to change filters,

and then click "Save." Then a service will be called to update the fields and close the popup.

Here is an illustration of the "Shell" before clicking the button (left) and after (right):

Illustration:

Problems:

  1. The Stock Trader RI sample application uses only a pop-up dialog box. I need a MODAL popup (the background will be updated, but the user will not have access to it while the popup is active).
  2. When displaying a popup, it should have an effect similar to Silverlight, which means - “Shell” should be displayed as “disabled” (like a gray mask above it).
  3. The pop-up window should not have an X button or a minimize or maximize button. The popup should just be a straight-angled box with curved corners.
  4. I don’t think I can use the “Notification Window” or “Confirmation Window” because I cannot put whatever I want into them. This is an example with 2 fields, but a popup can be much more complicated with tabs and lots of information displayed to the user.

So, how do I show a modal popup from my WPF + PRISM Shell-View-Model after clicking the "Edit" button? (This means that after running EditCommand ...)

+4
source share
1 answer

I found a solution here .

It mainly uses InteractionRequest , and it allows me to open a window (so that I can style as I want without the Maximize and Minimize buttons), and also - I can choose to be modal for it.

The great thing about this solution is that I can use custom pop-ups, not just the notification or confirmation pop-ups.

Also - I can pass the information back to the class by calling "InteractionRequest".

The only thing that he does not solve is that I cannot make the disconnected view of the call disconnect by adding a translucent gray over it ... I still have not figured out how to do this ...

+3
source

All Articles