How to hide modal dialog background?

2 posts, 1 answers
  1. xu
    xu avatar
    14 posts
    Member since:
    Feb 2012

    Posted 06 May 2012 Link to this post


    For some reason, I want to hide a modal dialog for a short while, but when I set the Visibilty property value to Visibility.Collapsed, the dialog disappeared, but it's modal background is still there. 

    Please don't tell me to use the Close method, because it will trigger the Closed event.

  2. Answer
    Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 07 May 2012 Link to this post


    You could remove the modal background by setting the ModalBackground property to null, but it will be still rendered, just without any color and will not stop mouse events. To completely remove the window and its modal background you need to close it.

    Hope this helps.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top