ClassListItem
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
ListItem()
Initializes a new instance of the ListItem class.
Declaration
public ListItem()
Fields
IsHighlightedProperty
Identifies the IsHighlighted property.
Declaration
public static readonly DependencyProperty IsHighlightedProperty
Field Value
DependencyProperty
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
DependencyProperty
Properties
IsHighlighted
Gets or sets a value indicating whether this instance is highlighted.
IsSelected
Gets or sets a value indicating whether this instance is selected.
ParentSelector
Gets the parent selector.
Methods
ChangeVisualState(bool)
Changes the visual state.
Declaration
protected virtual void ChangeVisualState(bool useTransitions)
Parameters
useTransitions
If set to true [use transitions].
GoToState(bool, params string[])
Updates the visual state.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call .
Declaration
public override void OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
Called before the event occurs.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
e
RoutedEventArgs
The data for the event.
OnIsHighlightedChanged()
Called when IsHighlighted property changed.
Declaration
protected virtual void OnIsHighlightedChanged()
OnIsSelectedChanged()
Called when selection is changed.
Declaration
protected virtual void OnIsSelectedChanged()
OnLostFocus(RoutedEventArgs)
Called before the event occurs.
Declaration
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
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
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
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
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
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.