Class ListItem
Represents a item in a Telerik.Windows.Controls.Primitives.ListControl.
Inheritance
Namespace: Telerik.Windows.Controls.Primitives
Assembly: Telerik.Windows.Controls.dll
Syntax
public class ListItem : ContentControl, ISelectorItem
Constructors
ListItem()
Fields
IsHighlightedProperty
Identifies the IsHighlighted property.
Declaration
public static readonly DependencyProperty IsHighlightedProperty
Field Value
System.Windows.DependencyProperty
|
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
System.Windows.DependencyProperty
|
Properties
IsHighlighted
Gets or sets a value indicating whether this instance is highlighted.
Declaration
public bool IsHighlighted { get; set; }
Property Value
System.Boolean
|
IsSelected
Gets or sets a value indicating whether this instance is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
System.Boolean
|
Implements
ParentSelector
Gets the parent selector.
Declaration
public ListControl ParentSelector { get; }
Property Value
ListControl
|
Methods
ChangeVisualState(Boolean)
Changes the visual state.
Declaration
protected virtual void ChangeVisualState(bool useTransitions)
Parameters
System.Boolean
useTransitions
If set to |
GoToState(Boolean, String[])
Updates the visual state.
Declaration
protected void GoToState(bool useTransitions, params string[] stateNames)
Parameters
System.Boolean
useTransitions
|
System.String[]
stateNames
|
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
Called before the System.Windows.UIElement.GotFocus event occurs.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
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 System.Windows.UIElement.LostFocus event occurs.
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
The data for the event. |
OnMouseEnter(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseEnter 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
System.Windows.Input.MouseEventArgs
e
The System.Windows.Input.MouseEventArgs that contains the event data. |
OnMouseLeave(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseLeave 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
System.Windows.Input.MouseEventArgs
e
The System.Windows.Input.MouseEventArgs that contains the event data. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonDown 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
System.Windows.Input.MouseButtonEventArgs
e
The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.OnMouseLeftButtonUp 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
System.Windows.Input.MouseButtonEventArgs
e
|
OnMouseRightButtonDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseRightButtonDown 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
System.Windows.Input.MouseButtonEventArgs
e
The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was pressed. |
TryFocus()
Focus the item.
Declaration
protected virtual void TryFocus()
Explicit Interface Implementations
ISelectorItem.SelectionHelper
Gets or sets the selection helper.
Declaration
SelectionHelper ISelectorItem.SelectionHelper { get; set; }
Returns
SelectionHelper
|