Ejemplo n.º 1
0
        private void xKeyboardButton_Click(object sender, RoutedEventArgs e)
        {
            switch (keyboardOnOff)
            {
            case KeyboardOnOff.KeyboardOn:
                keyboardOnOff = KeyboardOnOff.KeyboardOff;
                break;

            case KeyboardOnOff.KeyboardOff:
                keyboardOnOff = KeyboardOnOff.KeyboardOn;
                break;
            }
            xKeyboardButton.Content    = keyboardOnOff;
            xKeyboardCanvas.Visibility = (keyboardOnOff == KeyboardOnOff.KeyboardOn) ? Visibility.Visible : Visibility.Hidden;
        }
 private void xKeyboardButton_Click(object sender, RoutedEventArgs e)
 {
     switch (keyboardOnOff)
     {
         case KeyboardOnOff.KeyboardOn:
             keyboardOnOff = KeyboardOnOff.KeyboardOff;
             break;
         case KeyboardOnOff.KeyboardOff:
             keyboardOnOff = KeyboardOnOff.KeyboardOn;
             break;
     }
     xKeyboardButton.Content = keyboardOnOff;
     xKeyboardCanvas.Visibility = (keyboardOnOff == KeyboardOnOff.KeyboardOn) ? Visibility.Visible : Visibility.Hidden;
 }