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