Top "Listbox" questions

A graphical user interface element that allows the user to select one or more items from a list.

ListBox vs. ListView - how to choose for data binding

I'm considering either a ListBox or a ListView for a WPF application. It seems either supports data binding and item …

wpf data-binding listview listbox
WPF binding to Listbox selectedItem

Can anyone help with the following - been playing about with this but can't for the life of me get …

wpf binding listbox selecteditem
ListBox with ItemTemplate (and ScrollBar!)

I have a databound and itemtemplated ListBox: <ListBox x:Name="lbLista" ScrollViewer.VerticalScrollBarVisibility="Visible"> <ListBox.ItemTemplate> &…

wpf xaml listbox scroll
How to clear all data in a listBox?

I am after a statement that will clear all strings / data that is currently in a listBox, I have tried: …

c# .net windows listbox
WPF Trigger for IsSelected in a DataTemplate for ListBox items

I have a listbox, and I have the following ItemTemplate for it: <DataTemplate x:Key="ScenarioItemTemplate"> <Border …

wpf triggers listbox itemtemplate event-triggers
Background color of a ListBox item (winforms)

How can I set the background color of a specific item in a System.Windows.Forms.ListBox? I would like …

c# winforms listbox colors
Delete selected items from listbox

I want to do that but, the listbox changes on every deletion, so it throws runtime exception even if I …

c# listbox
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
How to move item in listBox up and down?

I have a listBox1 object and it contains some items. I have a button to move selected item up and …

c# .net winforms listbox