E
E
eRKa2016-02-07 12:32:50
.NET
eRKa, 2016-02-07 12:32:50

How to disable selection of ListBoxItem in ListBox?

There is a ListBox with a dozen ListBoxItem inside. What are the possibilities so that one of the items does not stand out when hovering over with the mouse and cannot be selected? It acts as a subsection of the list. I did not find such properties in him.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sumor, 2016-02-07
@kttotto

If you want to use subsections - use TreeView or ListBox grouping (you can specify a template for the group header).
If you don't like it, then ListBoxItem has an IsEnabled property, which can be used to disable interaction.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question