private OnPopupClosedStateChanged ( object sender, System.Windows.VisualStateChangedEventArgs e ) : void | ||
sender | object | Event source. |
e | System.Windows.VisualStateChangedEventArgs | Event arguments. |
return | void |
private void OnPopupClosedStateChanged(object sender, VisualStateChangedEventArgs e)
{
// Delayed closing of the popup until now
if(e != null && e.NewState != null && e.NewState.Name == VisualStates.StatePopupClosed)
{
if(Popup != null)
{
Popup.IsOpen = false;
}
OnClosed(EventArgs.Empty);
}
}