18 lines
645 B
C#
18 lines
645 B
C#
using System.Linq;
|
|
using System.Windows;
|
|
using Xceed.Wpf.Toolkit.Primitives;
|
|
|
|
namespace Elwig.Windows {
|
|
public partial class TestWindow : Window {
|
|
public TestWindow() {
|
|
InitializeComponent();
|
|
MyComboBox.ItemsSource = new string[] { "Klasse A" , "Klasse B", "Klasse C", "Klasse D", "Klasse E", "Klasse F" };
|
|
MyListBox.ItemsSource = new string[] { "Test 1", "Test 2", "Test 3", "Test 4" };
|
|
}
|
|
|
|
private void OnItemSelectionChanged(object sender, ItemSelectionChangedEventArgs e) {
|
|
MyText.Text = string.Join(", ", MyComboBox.SelectedItems.Cast<string>());
|
|
}
|
|
}
|
|
}
|