Exemplo n.º 1
0
 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);
             }
         });
     }
 }
Exemplo n.º 2
0
 private async void HyperlinkButtonFileNamingSettings_Click(object sender, RoutedEventArgs e)
 {
     await RunOnUIThreadAsync(CoreDispatcherPriority.High, () => FlyoutRename.Hide());
 }
Exemplo n.º 3
0
 private async void ButtonRenameCancel_Click(object sender, RoutedEventArgs e)
 {
     await RunOnUIThreadAsync(CoreDispatcherPriority.High, () => FlyoutRename.Hide());
 }