Xceed.Silverlight.ListBox.v2.0 Assembly > Xceed.Silverlight.ListBox Namespace : ListBoxItem Class |
Represents a selectable item in the ListBox.
Public Class ListBoxItem Inherits ListBoxContainer Implements Xceed.Silverlight.DragDrop.IProvideDraggedContentPresenter
Dim instance As ListBoxItem
public class ListBoxItem : ListBoxContainer, Xceed.Silverlight.DragDrop.IProvideDraggedContentPresenter
An instance of this class is instantiated through ListBoxItemConfiguration.
A ListBox contains a collection of ListBoxItem objects. To select a ListBoxItem in a ListBox, set its IsSelected property to true.
Bind a ListBoxItem to data by binding the ItemsSource property of the listbox that contains it to a data source.
You can customize the appearance of a ListBoxItem by setting the ItemTemplate property to a DataTemplate.
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
Xceed.Silverlight.ListBox.ListBoxContainer
Xceed.Silverlight.ListBox.ListBoxItem
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2