Class
RadListBoxItem

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:

cs-api-definition
[TelerikToolboxCategory("Data")]
public class RadListBoxItem : ListItem, ISelectorItem

Inheritance: objectListItemRadListBoxItem

Derived Classes: DockingNavigatorListBoxItemRadClockItemRadColorPaletteViewItemRadGalleryItemDocumentThemeListBoxItemThemeColorListBoxItemThemeFontListBoxItem

Implements: ISelectorItem

Inherited Members ListItem.IsSelectedPropertyListItem.IsHighlightedPropertyListItem.OnGotFocus(RoutedEventArgs)ListItem.OnLostFocus(RoutedEventArgs)ListItem.OnMouseLeftButtonDown(MouseButtonEventArgs)ListItem.OnMouseLeftButtonUp(MouseButtonEventArgs)ListItem.OnMouseRightButtonDown(MouseButtonEventArgs)ListItem.GoToState(bool, params string[])ListItem.TryFocus()ListItem.OnIsHighlightedChanged()ListItem.ParentSelectorListItem.IsHighlightedListItem.IsSelected

Constructors

RadListBoxItem()

Initializes a new instance of the RadListBoxItem class.

Declaration

cs-api-definition
public RadListBoxItem()

Methods

ChangeVisualState(bool)

Changes the visual state.

Declaration

cs-api-definition
protected override void ChangeVisualState(bool useTransitions)

Parameters

useTransitions

bool

If set to true [use transitions].

Overrides ListItem.ChangeVisualState(bool)

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides ListItem.OnApplyTemplate()

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

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnIsSelectedChanged()

Called when IsSelected property is changed.

Declaration

cs-api-definition
protected override void OnIsSelectedChanged()

Overrides ListItem.OnIsSelectedChanged()

OnMouseEnter(MouseEventArgs)

Invoked when an unhandled  attached event is raised on this element. Implement this method to add class handling for this event.

Declaration

cs-api-definition
protected override void OnMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs that contains the event data.

Overrides ListItem.OnMouseEnter(MouseEventArgs)

OnMouseLeave(MouseEventArgs)

Invoked when an unhandled  attached event is raised on this element. Implement this method to add class handling for this event.

Declaration

cs-api-definition
protected override void OnMouseLeave(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs that contains the event data.

Overrides ListItem.OnMouseLeave(MouseEventArgs)