private void ToggleSwitch1_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (ToggleSwitch1.Clicked) { InputBox.Text = ""; InputBox.Visibility = Visibility.Hidden; TextShutdown.Visibility = Visibility.Hidden; InputBox.IsEnabled = false; AcceptOperation.Focus(); } else { InputBox.Visibility = Visibility.Visible; TextShutdown.Visibility = Visibility.Visible; InputBox.IsEnabled = true; } }
private void ToggleSwitch2_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { AcceptOperation.Focus(); }