[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.C1FlexComboBox

C1FlexComboBox Class

ComboBox that looks the same in WPF and Silverlight and implements the IsEditable property in both platforms (the Silverlight ComboBox is not editable).

Namespace: C1.WPF.FlexGrid
Assembly: C1.WPF.FlexGrid.4.6.2.dll
Syntax
public class C1FlexComboBox : TextBox, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild

Constructors

Name Description
C1FlexComboBox()

Initializes a new instance of a C1FlexComboBox.

Properties

Name Description
DropDownItems

Gets or sets the list of items to show in the dropdown list.

IsDropDownEnabled

Gets or sets whether the user should be allowed to open the drop-down portion of the control.

IsDroppedDown

Indicates whether the dropdown is currently being displayed.

IsEditable

Gets or sets a value that determines whether the textbox is editable or restricted to the items in the DropDownItems collection.

ListBox

Gets a reference to the ListBox used to display the drop-down items.

MaxDropDownHeight

Gets or sets the maximum height of the dropdown in pixels.

SelectedIndex

Gets or sets the index of the item that is currently selected on the list.

Methods

Name Description
OnApplyTemplate()

Overridden to remove focus/mouse borders and add dropdown button to regular TextBox template.

OnCreateAutomationPeer()

Gets an AutomationPeer object used for testing the control.

OnIsDroppedDownChanged(EventArgs)

Raises the IsDroppedDownChanged event.

OnLostFocus(RoutedEventArgs)

Overridden to close the drop-down when losing focus.

Events

Name Description
IsDroppedDownChanged

Occurs when the value of the IsDroppedDown property changes.