This is a migrated thread and some comments may be shown as answers.

How to hide modal dialog background?

1 Answer 127 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
xu
Top achievements
Rank 1
xu asked on 07 May 2012, 04:02 AM

Hi,

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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 07 May 2012, 09:43 AM
Hello,

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 >>

Tags
Window
Asked by
xu
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or