[]
        
(Showing Draft Content)

C1.WPF.C1ComboBoxItem

C1ComboBoxItem Class

Implements a selectable item inside a C1ComboBox.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
[TemplatePart(Name = "ContentPresenter", Type = typeof(ContentPresenter))]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Selected", GroupName = "SelectionStates")]
[TemplateVisualState(Name = "Unselected", GroupName = "SelectionStates")]
public class C1ComboBoxItem : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild

Constructors

Name Description
C1ComboBoxItem()

Initializes a new instance of a C1ComboBoxItem.

Fields

Name Description
IsFocusedProperty

Identifies the IsFocused dependency property.

IsSelectedProperty

Identifies the IsSelected dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

Properties

Name Description
IsFocused

Returns true if the control has the focus.

IsSelected

Gets or sets a Boolean value indicating that this C1ComboBoxItem is selected.

MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

SelectedBackground

Gets or sets the Brush used to highlight the control when it is selected.

Methods

Name Description
ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

ChangeVisualStateFocus(bool)

Updates the current visual state of the Focus visual state group to match the object's properties.

ChangeVisualStateSelection(bool)

Updates the current visual state of the Selection visual state group to match the object's properties.

OnApplyTemplate()

Builds the visual tree for the C1ComboBoxItem control when a new template is applied.

OnContentChanged(object, object)

Called when the value of the Content property changes.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property has been updated.

Events

Name Description
IsMouseOverChanged

Event raised when the IsMouseOver property has changed.

Extension Methods