Beispiel #1
0
 private void RemoveDevice_Click(object sender, RoutedEventArgs e)
 {
     Devices.RemoveAt(DeviceListBox.SelectedIndex);
     DeviceListBox.Focus();
 }
 private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
 {
     DeviceListBox.Focus();
 }
Beispiel #3
0
 private void AddDevice_Click(object sender, RoutedEventArgs e)
 {
     Devices.Add(new DeviceSettings());
     DeviceListBox.SelectedIndex = Devices.Count - 1;
     DeviceListBox.Focus();
 }