In order to achieve the desired behavior, you can handle the SelectionChanged
event of the ListBox
sender, SelectionChangedEventArgs e)
var listbox = sender
var item = e.AddedItems;
Please let me know if this works for you.
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow
you to write beautiful native mobile apps using a single shared C# codebase.