private void CreateNote(object sender, RoutedEventArgs e)
 {
     EditCardPanel.DeleteVisible(false);
     new NoteObject(new JObject())
     {
         UpdatedOrCreated = true
     };
     EditCardPanel.AttachedFlyout = EditCardFlyout;
     EditCardFlyout.ShowAt(TitleBlock);
 }
 private void NotesTable_OnItemClick(object sender, ItemClickEventArgs e)
 {
     if (e.ClickedItem != null)
     {
         EditNoteCard edit = EditCardPanel;
         edit.DeleteVisible(true);
         var data = e.ClickedItem as NoteObject;
         if (data != null)
         {
             edit.Note           = data;
             edit.AttachedFlyout = EditCardFlyout;
             DependencyObject container = NotesTable.ContainerFromItem(data);
             EditCardFlyout.ShowAt(container as FrameworkElement);
         }
     }
 }