wpf - How can I overlay a control on a window? -


There is now a normal window with a group of my controls.

When the user wants to dim the entire window and display a popup above it on a certain button

So this is my theory ...

  1. Each control layer is at 0.
  2. A rectangle has the same size as 1 size. It has 50% transparency.
  3. My popup loads in 2 layers.
  4. Clicking anywhere on the rectangle will work similarly to pop-ups.

Is this possible?

This is entirely possible.

Then change your code to & lt; Grid & gt; Place in any panel inside .

Then, in the same grid, one and lieutenant; Rectangle opacity = "5" visibility = "collapsed" /> for the overlay and one centered panel for the popup.

Rectangle the click event and hide the popup


Comments