Show a List as ReadOnly

09 May

I have often the situation when I need showing a list and I do use a ListBox I do not need that the selected item is highlighted. If I use a ListBox for displaying a list of data then this looks like:


But as you can see there is a highlighted item which we want to avoid. How can we avoid that? This is achieved by using an ItemsControl. Then we have solved the problem and the list looks like:


Leave a comment

Posted by on May 9, 2012 in C-Sharp, WPF


Tags: ,

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: