17 lines
552 B
C#
17 lines
552 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" };
|
|
}
|
|
|
|
private void OnItemSelectionChanged(object sender, ItemSelectionChangedEventArgs e) {
|
|
MyText.Text = string.Join(", ", MyComboBox.SelectedItems.Cast<string>());
|
|
}
|
|
}
|
|
}
|