How can apply for example the blur effect when a child Window opens in the XAML?
I am applying this effect when i set the owner of the child window in code behind, but i was looking a way to apply it in the XAML. Is there anything to acomplish this?
Thanks in advance!
One simple way would be to catch a change to the
IsActiveproperty in a style. The parent window will be deactivated when a child window pops up:The drawback with this approach is that the window is also deactivated when you switch away from the application. If this is an issue for you then you’re probably better off sticking with the idea of applying the effect in the code-behind when you pop up the dialog.