[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.ListItemBase

ListItemBase Class

Represents a selectable item in a GcListBox with UseMultipleColumn is false.

Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
[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 ListItemBase : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
<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 ListItemBase
    Inherits ContentControl
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild

Constructors

Name Description
ListItemBase()

Initializes a new instance of the ListItemBase class.

Fields

Name Description
IsSelectedProperty

Identifies the IsSelected DependencyProperty.

SelectedEvent

Identifies the ListItemBase.Selected routed event.

UnselectedEvent

Identifies the ListItemBase.Unselected routed event.

Properties

Name Description
IsSelected

Gets or sets a value that indicates whether a ListItemBase is selected. This is a dependency property.

Methods

Name Description
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.

OnGotFocus(RoutedEventArgs)

Called before the GotFocus event occurs.

OnLostFocus(RoutedEventArgs)

Raises the LostFocus routed event by using the event data that is provided.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs).

OnSelected(RoutedEventArgs)

Raises the Selected event.

OnUnselected(RoutedEventArgs)

Raises the Unselected event.

Events

Name Description
Selected

Occurs when a ListItemBase is selected.

Unselected

Occurs when a ListItemBase is unselected.