ClassRadListBoxItem
Represents a selectable item within the RadListBox control, which allows users to select and interact with items in a list. The RadListBoxItem class supports various visual states such as Normal, MouseOver, Disabled, Selected, and Unselected, enabling dynamic styling based on user interactions. This class also integrates with the UI Automation framework to improve accessibility. It can be customized through templates and extends the functionality of list items in applications built using Telerik controls.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
[TelerikToolboxCategory("Data")]
public class RadListBoxItem : ListItem, ISelectorItem
Inheritance: objectListItemRadListBoxItem
Derived Classes:
Implements:
Inherited Members
Constructors
RadListBoxItem()
Initializes a new instance of the RadListBoxItem class.
Declaration
public RadListBoxItem()
Methods
ChangeVisualState(bool)
Changes the visual state.
Declaration
protected override void ChangeVisualState(bool useTransitions)
Parameters
useTransitions
If set to true [use transitions].
Overrides
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call .
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Called by the Automation infrastructure when AutomationPeer is requested for this element. The element can return null or the instance of AutomationPeer-derived class, if it supports UI Automation.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnIsSelectedChanged()
Called when IsSelected property is changed.
Declaration
protected override void OnIsSelectedChanged()
Overrides
OnMouseEnter(MouseEventArgs)
Invoked when an unhandled attached event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
e
MouseEventArgs
The MouseEventArgs that contains the event data.
Overrides
OnMouseLeave(MouseEventArgs)
Invoked when an unhandled attached event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
e
MouseEventArgs
The MouseEventArgs that contains the event data.
Overrides