Exemplo n.º 1
0
 private async void AppBarButton_OkClick(object sender, RoutedEventArgs e)
 {
     AppBar.Focus(FocusState.Keyboard);
     await Dispatcher.RunAsync(CoreDispatcherPriority.Low, async() =>
     {
         await Task.Delay(100);
         await Dispatcher.RunAsync(CoreDispatcherPriority.Low, () =>
         {
             ViewModel.MethodInvocationContinuation.Execute(null);
             (Window.Current.Content as Frame).GoBack(new DrillInNavigationTransitionInfo());
         });
     });
 }
Exemplo n.º 2
0
 /// <summary>
 /// Handles the Loaded event of the globalAppBar control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 void globalAppBar_Loaded(object sender, RoutedEventArgs e)
 {
     globalAppBar.Focus(Windows.UI.Xaml.FocusState.Programmatic);
 }