Beispiel #1
0
 private void KeyDownHandler(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         AdornedTerminal.SetAdorner(null);
     }
 }
 private void OptionLabelMouseDown(object sender, MouseButtonEventArgs e)
 {
     if (sender is Label label)
     {
         label.Background     = new SolidColorBrush(Color.FromRgb(8, 25, 150));
         AdornedTerminal.Data = Enum.Parse(AdornedTerminal.Model.Type, label.Content.ToString());
         AdornedTerminal.SetAdorner(null);
     }
 }
 private void OnBorderMouseDown(object sender, MouseButtonEventArgs e)
 {
     AdornedTerminal.SetAdorner(null);
 }
Beispiel #4
0
 private void LostFocusHandler(object sender, RoutedEventArgs e)
 {
     AdornedTerminal.SetAdorner(null);
 }