locked
How to block UI when Popup dialog is displayed?

    Question

  • Hello

    Is there any way to block a UI interaction when Popup dialog is displayed until user cancel that popup dialog.

    Thanks in advance.




    • Edited by zee_patel Wednesday, July 23, 2014 5:39 AM
    Wednesday, July 23, 2014 5:37 AM

Answers

  • You can disable the UI that you don't want the user to interact with. You can set the IsEnabled property to false on the root of the tree you don't want to show and it will be inherited all the way down.
    • Marked as answer by zee_patel Wednesday, July 23, 2014 8:12 AM
    Wednesday, July 23, 2014 6:22 AM
    Moderator

All replies

  • You can disable the UI that you don't want the user to interact with. You can set the IsEnabled property to false on the root of the tree you don't want to show and it will be inherited all the way down.
    • Marked as answer by zee_patel Wednesday, July 23, 2014 8:12 AM
    Wednesday, July 23, 2014 6:22 AM
    Moderator
  • Hi Rob,

    As you suggested the IsEnabled property works, but what if that popup is a UserControl and the logic for dismissing that popup is written there. Than how to again enable that GUI on the root.

    Wednesday, July 23, 2014 9:20 AM
  • I'm not sure what you mean.

    Something else to consider is making the Popup light-dismiss rather than blocking the previous page. This is generally more user friendly. If you do need to be modal then consider a MessageDialog style full-screen page.

    --Rob

    Wednesday, July 23, 2014 9:47 PM
    Moderator