[]
Represents a selectable item in a GcListBox with UseMultipleColumn is true.
[TemplatePart(Name = "SubItemsPresenter", Type = typeof(SubItemsPresenter))]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unselected", GroupName = "SelectionStates")]
[TemplateVisualState(Name = "Selected", GroupName = "SelectionStates")]
[TemplateVisualState(Name = "SelectedUnfocused", GroupName = "SelectionStates")]
public class ListItem : ListItemBase, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
<TemplatePart(Name:="SubItemsPresenter", Type:=GetType(SubItemsPresenter))>
<TemplateVisualState(Name:="Normal", GroupName:="CommonStates")>
<TemplateVisualState(Name:="MouseOver", GroupName:="CommonStates")>
<TemplateVisualState(Name:="Disabled", GroupName:="CommonStates")>
<TemplateVisualState(Name:="Unfocused", GroupName:="FocusStates")>
<TemplateVisualState(Name:="Focused", GroupName:="FocusStates")>
<TemplateVisualState(Name:="Unselected", GroupName:="SelectionStates")>
<TemplateVisualState(Name:="Selected", GroupName:="SelectionStates")>
<TemplateVisualState(Name:="SelectedUnfocused", GroupName:="SelectionStates")>
Public Class ListItem
Inherits ListItemBase
Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
| Name | Description |
|---|---|
| ListItem() | Initializes a new instance of the ListItem class. |
| Name | Description |
|---|---|
| IndentProperty | Identifies the Indent DependencyProperty. |
| IsCheckedProperty | Identifies the IsChecked DependencyProperty. |
| Name | Description |
|---|---|
| Indent | Gets or sets a value indicating that the indent of the ListItem. This is a dependency property. |
| IsChecked | Gets or sets whether the ListItem is checked. This is a dependency property. |
| SubItems | Gets a collection of the sub items populate the item. |
| Name | Description |
|---|---|
| ArrangeOverride(Size) | Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior. |
| MeasureOverride(Size) | Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior. |
| OnApplyTemplate() | When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. |