示例#1
0
 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;
     }
 }
示例#2
0
 private void ToggleSwitch2_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     AcceptOperation.Focus();
 }