This project is read-only.
1
Vote

ListBoxItem Selection Problem (WPF 3 Themes)

description

By using the Bureau* and Expression* thems I have problem with ListBox with SelectionMode="Multiple". I am limiting the number of selected items to constant value by calling SelectedItems.RemoveAt method in code behind. These changes made programmatically were not reflected in UI - all items were selected.
 
I managed to resolve this issue by replacing ListBoxItem's ControlTemplate's
<Trigger Property="IsSelected" Value="true"> <Trigger.ExitActions> and <Trigger.EnterActions>
by two equivalent Trigger setters.

comments