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

Command binding when dialog is closed

1 Answer 8 Views
Popup
This is a migrated thread and some comments may be shown as answers.
jeljeljel
Top achievements
Rank 2
jeljeljel asked on 09 Jul 2019, 08:02 PM
How can an application be notified when a dialog is closed?  Is there something built into the dialog API that will notify when it's closing?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 10 Jul 2019, 11:00 AM
Hi John,

You could use the Popup IsOpen property to get notified when the control is closed. You could either bind it to a boolean property in the ViewModel or use PropertyChanged event of the Popup and track when IsOpen is updated, here is a quick snippet on this:

this.popup.PropertyChanged += Popup_PropertyChanged;

private void Popup_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
    if(e.PropertyName == "IsOpen")
    {
 
    }
}

I hope this would be of help.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Popup
Asked by
jeljeljel
Top achievements
Rank 2
Answers by
Yana
Telerik team
Share this question
or