private async void TextBoxRename_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == VirtualKey.Accept || e.Key == VirtualKey.Enter) { await RunOnUIThreadAsync(CoreDispatcherPriority.Normal, () => { if (ButtonRenameConfirm.IsEnabled) { FlyoutRename.Hide(); ViewModel.RenameCommand.Execute(TextBoxRename.Text); } }); } }
private async void HyperlinkButtonFileNamingSettings_Click(object sender, RoutedEventArgs e) { await RunOnUIThreadAsync(CoreDispatcherPriority.High, () => FlyoutRename.Hide()); }
private async void ButtonRenameCancel_Click(object sender, RoutedEventArgs e) { await RunOnUIThreadAsync(CoreDispatcherPriority.High, () => FlyoutRename.Hide()); }