Click here to Skip to main content
15,895,142 members

Comments by Lee_Olsen (Top 2 by date)

Lee_Olsen 21-Feb-13 16:34pm View    
Another option besides binding IsSelected to a property always returning false since this isn't always an option.

<TreeView>
<TreeView.ItemContainerStyle>

<Style TargetType="TreeViewItem">

<Setter Property="Focusable" Value="False" />

</Style>
</TreeView.ItemContainerStyle>
</TreeView>
Lee_Olsen 21-Feb-13 16:29pm View    
This only makes the TreeViewItems default value of IsSelected be set to false. You can still select an item. You would need to bind IsSelected to a property that always returns false to make it unselectable.