public void Start() { VisualStateManager.GoToState(this, "EnterColourNameState", true); FirstTextBox.Focus(FocusState.Programmatic); //EnterStory.BeginTime = TimeSpan.Zero; //EnterStory.Begin(); }
private void EnableChange(object sender, RoutedEventArgs e) { FirstTextBoxEnableState = (bool)EnableCheckBox.IsChecked; SecondTextBoxEnableState = (bool)EnableCheckBox.IsChecked; ThirdTextBoxEnableState = (bool)EnableCheckBox.IsChecked; FirstTextBox.Clear(); SecondTextBox.Clear(); ThirdTextBox.Clear(); }
public NewHeightMapWindow(Vector2 min, Vector2 max) { Min = min; Max = max; InitializeComponent(); EventManager.RegisterClassHandler(typeof(System.Windows.Controls.TextBox), GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotKeyboardFocus)); FirstTextBox.SelectAll(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { FirstTextBox.Focus(); }
private void ResetButton_Click(object sender, System.EventArgs e) { PassTextBox.Clear(); FirstTextBox.Clear(); LastTextBox.Clear(); ConfirmPassTextBox.Clear(); GmailTextBox.Clear(); UserTextBox.Clear(); }