Setting ListBoxItem's Focusable property inconsistent with WPF.
Posted: 24 Nov 2018, 23:54
I'm trying to make it so ListBox items cannot be selected. Because the list items will eventually need to be selectable, I cannot use an ItemsControl.
I've found a solution of setting the ListBoxItem's Focusable property to false. This still sadly highlights items when the cursor is hovered over them, but in WPF it does not allow selection.
In Noesis, this seems to have no affect. The ListBox's items are still selectable.
I've found a solution of setting the ListBoxItem's Focusable property to false. This still sadly highlights items when the cursor is hovered over them, but in WPF it does not allow selection.
In Noesis, this seems to have no affect. The ListBox's items are still selectable.
Code: Select all
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Focusable" Value="False"/>
</Style>
</ListBox.ItemContainerStyle>