Top "Listboxitem" questions

listboxitem is a GUI element which represents an item in a list surrounded by a box.

How to get a ListBox ItemTemplate to stretch horizontally the full width of the ListBox?

I want to have the ListItems to extend with their orange background the full width of the Listbox. Currently they …

xaml listboxitem
C# Listbox Item Double Click Event

I have a list box with some items. Is there anyway I can attach a double click event to each …

c# events listbox listboxitem double-click
How to capture a mouse click on an Item in a ListBox in WPF?

I want to get notified when an item in a ListBox gets clicked by the mouse, whether it is already …

wpf listbox events click listboxitem
adding a ListBoxItem in a ListBox in C#?

I know that: String test = "test"; ListBox.Items.Add(test); or String test = "test"; int index = 1; ListBox.Items.Insert(index, …

c# wpf string listbox listboxitem
How can I programmatically select an item in a listbox?

I have a listbox displaying items from an enum. I want to select/highlight the current value (read from a …

c# listbox compact-framework listboxitem .net-1.1
Double Click a ListBox item to open a browser

I have a ListBox in my wpf window that binds to an ObervableCollection. I want to open the browser if …

wpf binding listbox listboxitem
C# Listbox set selected item

i have a C# listbox with the values Profile 1 Profile 2 Profile 3 I want to have Profile 2 selected when the form …

c# winforms listbox listboxitem selected
WPF ListBox Selection Color

Sorry if this has been asked before, but I couldn't find a solution to what I'm looking for in the …

wpf listbox triggers listboxitem
WPF: how do i handle a click on a ListBox item?

In my WPF app I'm handling a ListBox SelectionChanged event and it runs fine. Now I need to handle a …

c# wpf listboxitem
WPF - How to combine DataTrigger and Trigger?

NOTE I have asked the related question: How to combine DataTrigger and EventTrigger? I have a list box containing several …

.net wpf triggers selection listboxitem