private void OnModalStateChanged(object sender, ModalStateEventArgs e)
 {
     Visible = e.Visible;
 }
 private void OnModalStateChanged(object sender, ModalStateEventArgs e)
 {
     IsOpen = e.Opened;
 }