private void HidePopupAnimation_Completed(object sender, object e) { while (NoteFrame.CanGoBack) { NoteFrame.GoBack(); } NoteFrame.BackStack.Clear(); NotePopup.IsOpen = false; }
public void OpenNote(object parameter) { UpdateNotePopupSizeAndPosition(); NoteOpening?.Invoke(this, EventArgs.Empty); ShowPopupAnimation.Begin(); while (NoteFrame.CanGoBack) { NoteFrame.GoBack(); } NoteFrame.BackStack.Clear(); NoteFrame.Navigate(typeof(NoteEditPage), parameter); NotePopup.IsOpen = true; NoteOpened?.Invoke(this, new GenericEventArgs(parameter)); }