コード例 #1
0
        public ChangeSoundView()
        {
            InitializeComponent();

            ServiceLocator.DispatcherService.RunOnMainThread(() =>
            {
                //TextBoxSoundName.Focus(FocusState.Keyboard);
                TextBoxSoundName.SelectAll();
            });
        }
コード例 #2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     TextBoxSoundName.Focus(FocusState.Keyboard);
     base.OnNavigatedTo(e);
 }
コード例 #3
0
 private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
 {
     TextBoxSoundName.Focus(FocusState.Keyboard);
 }