private void CloseButton_Click(object sender, RoutedEventArgs e) { var context = DataContext as ViewModels.EditDialogViewModel; context.EditableCollectionItem = new Data.Models.CollectionDataItem(context.OriginalCollectionItem); EditDialogCurrent.Hide(); }
private void ContentDialog_SecondaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { var context = DataContext as ViewModels.EditDialogViewModel; context.EditableCollectionItem = new Data.Models.CollectionDataItem(context.OriginalCollectionItem); EditDialogCurrent.Hide(); }