Class ListBoxItem
Represents a selectable item in a ListBox.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public abstract class ListBoxItem : ContentControl, ISelectable
Fields
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
System.Windows.DependencyProperty
|
SelectedEvent
Identifies the Selected routed event.
Declaration
public static readonly RoutedEvent SelectedEvent
Field Value
RoutedEvent
|
UnselectedEvent
Identifies the Unselected routed event.
Declaration
public static readonly RoutedEvent UnselectedEvent
Field Value
RoutedEvent
|
Properties
IsSelected
Gets or sets a value that indicates whether a ListBoxItem is selected. This is a dependency property.
Declaration
public bool IsSelected { get; set; }
Property Value
System.Boolean
|
Methods
OnCreateAutomationPeer()
When implemented in a derived class, returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Silverlight automation infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
The class-specific System.Windows.Automation.Peers.AutomationPeer subclass to return. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Called when the user presses the left mouse button over the ListBoxItem.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
The event data. |
OnSelected(RadRoutedEventArgs)
Called when the ListBoxItem is selected in a ListBox.
Declaration
protected virtual void OnSelected(RadRoutedEventArgs e)
Parameters
RadRoutedEventArgs
e
The event data. |
Remarks
This method is called when the IsSelected property changes to true.
OnUnselected(RadRoutedEventArgs)
Called when the ListBoxItem is unselected in a ListBox.
Declaration
protected virtual void OnUnselected(RadRoutedEventArgs e)
Parameters
RadRoutedEventArgs
e
The event data. |
Remarks
This method is called when the IsSelected property changes to false.
Events
Selected
Occurs when a ListBoxItem is selected.
Declaration
public event RoutedEventHandler Selected
Event Type
System.Windows.RoutedEventHandler
|
Unselected
Occurs when a ListBoxItem is unselected.
Declaration
public event RoutedEventHandler Unselected
Event Type
System.Windows.RoutedEventHandler
|