title: WPF. ListBox. How to limit maximum of selected items to 2?
body: <p>I need to limit the number of selected items in a ListBox to 2. How to do this? Is it possible to avoid the usage of events and do this in XAML?</p>