private async void AddKnowBtn_Click(object sender, RoutedEventArgs e) { KnowItemDialog dialog = new KnowItemDialog(null); ContentDialogResult result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary) { updateList(null, null); } }
private async void KnowList_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e) { KnowledgeBase item = (KnowledgeBase)((ListView)sender).SelectedItem; KnowItemDialog dialog = new KnowItemDialog(item.id); ContentDialogResult result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary) { updateList(null, null); } }