ListItem
Represents a item in a Telerik.Windows.Controls.Primitives.ListControl.
Definition
Namespace:Telerik.Windows.Controls.Primitives
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class ListItem : ContentControl, ISelectorItem
Inheritance: objectListItem
Derived Classes:
Implements:
Constructors
Initializes a new instance of the ListItem class.
public ListItem()
Fields
IsHighlightedProperty
DependencyProperty
Identifies the IsHighlighted property.
public static readonly DependencyProperty IsHighlightedProperty
IsSelectedProperty
DependencyProperty
Identifies the IsSelected�dependency property.
public static readonly DependencyProperty IsSelectedProperty
Properties
Gets or sets a value indicating whether this instance is highlighted.
public bool IsHighlighted { get; set; }
Gets or sets a value indicating whether this instance is selected.
public bool IsSelected { get; set; }
Implements:
Gets the parent selector.
public ListControl ParentSelector { get; }
Methods
Changes the visual state.
protected virtual void ChangeVisualState(bool useTransitions)
If set to true [use transitions].
When overridden in a derived class, is invoked whenever application code or internal processes call .
public override void OnApplyTemplate()
Called before the event occurs.
protected override void OnGotFocus(RoutedEventArgs e)
The data for the event.
Called when IsHighlighted property changed.
protected virtual void OnIsHighlightedChanged()
Called when selection is changed.
protected virtual void OnIsSelectedChanged()
Called before the event occurs.
protected override void OnLostFocus(RoutedEventArgs e)
The data for the event.
Invoked when an unhandled �attached event is raised on this element. Implement this method to add class handling for this event.
protected override void OnMouseEnter(MouseEventArgs e)
The MouseEventArgs that contains the event data.
Invoked when an unhandled �attached event is raised on this element. Implement this method to add class handling for this event.
protected override void OnMouseLeave(MouseEventArgs e)
The MouseEventArgs that contains the event data.
Invoked when an unhandled �routed event is raised on this element. Implement this method to add class handling for this event.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.
Invoked when an unhandled �routed event is raised on this element. Implement this method to add class handling for this event.
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
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.
protected override void OnMouseRightButtonDown(MouseButtonEventArgs e)
The MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was pressed.
Focus the item.
protected virtual void TryFocus()