Class
ListItem

Represents a item in a Telerik.Windows.Controls.Primitives.ListControl.

Definition

Namespace:Telerik.Windows.Controls.Primitives

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class ListItem : ContentControl, ISelectorItem

Inheritance: objectListItem

Derived Classes: RadListBoxItem

Implements: ISelectorItem

Constructors

ListItem()

Initializes a new instance of the ListItem class.

Declaration

cs-api-definition
public ListItem()

Fields

IsHighlightedProperty

Identifies the IsHighlighted property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsHighlightedProperty

Field Value

DependencyProperty

IsSelectedProperty

Identifies the IsSelected�dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSelectedProperty

Field Value

DependencyProperty

Properties

IsHighlighted

Gets or sets a value indicating whether this instance is highlighted.

Declaration

cs-api-definition
public bool IsHighlighted { get; set; }

Property Value

bool

IsSelected

Gets or sets a value indicating whether this instance is selected.

Declaration

cs-api-definition
public bool IsSelected { get; set; }

Property Value

bool

Implements ISelectorItem.IsSelected

ParentSelector

Gets the parent selector.

Declaration

cs-api-definition
public ListControl ParentSelector { get; }

Property Value

ListControl

Methods

ChangeVisualState(bool)

Changes the visual state.

Declaration

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

Parameters

useTransitions

bool

If set to true [use transitions].

GoToState(bool, params string[])

Updates the visual state.

Declaration

cs-api-definition
protected void GoToState(bool useTransitions, params string[] stateNames)

Parameters

useTransitions

bool

stateNames

string[]

OnApplyTemplate()

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

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnGotFocus(RoutedEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnGotFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The data for the event.

OnIsHighlightedChanged()

Called when IsHighlighted property changed.

Declaration

cs-api-definition
protected virtual void OnIsHighlightedChanged()

OnIsSelectedChanged()

Called when selection is changed.

Declaration

cs-api-definition
protected virtual void OnIsSelectedChanged()

OnLostFocus(RoutedEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnLostFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The data for the event.

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.

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.

OnMouseLeftButtonDown(MouseButtonEventArgs)

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

Declaration

cs-api-definition
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.

OnMouseLeftButtonUp(MouseButtonEventArgs)

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

Declaration

cs-api-definition
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

OnMouseRightButtonDown(MouseButtonEventArgs)

Invoked when an unhandled �routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

Declaration

cs-api-definition
protected override void OnMouseRightButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

The MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was pressed.

TryFocus()

Focus the item.

Declaration

cs-api-definition
protected virtual void TryFocus()