[]
        
(Showing Draft Content)

C1.WPF.Input.C1MultiSelect

C1MultiSelect Class

A C1TagEditor as base editor with C1.WPF.ListView.C1ListView as drop-down.

Inheritance
C1MultiSelect
Namespace: C1.WPF.Input
Assembly: C1.WPF.Input.dll
Syntax
[StyleTypedProperty(Property = "CaptionStyle", StyleTargetType = typeof(C1CheckBox))]
[StyleTypedProperty(Property = "TagStyle", StyleTargetType = typeof(C1Tag))]
[StyleTypedProperty(Property = "PopupStyle", StyleTargetType = typeof(C1PopupBorder))]
[TemplatePart(Name = "Editor", Type = typeof(C1TagEditor))]
[TemplatePart(Name = "HeaderFormat", Type = typeof(ContentControl))]
[TemplatePart(Name = "ItemList", Type = typeof(C1ListView))]
[TemplatePart(Name = "SuggestList", Type = typeof(C1ListView))]
[TemplatePart(Name = "DropDown", Type = typeof(C1DropDown))]
[TemplateVisualState(Name = "ShowHeaderFormat", GroupName = "HeaderFormatStates")]
[TemplateVisualState(Name = "HideHeaderFormat", GroupName = "HeaderFormatStates")]
public class C1MultiSelect : C1ItemsControl

Constructors

Name Description
C1MultiSelect()

Initializes a new instance of the C1MultiSelect class.

Fields

Name Description
AutoCompleteModeProperty

Identifies the AutoCompleteMode dependency property.

AutoSuggestModeProperty

Identifies the AutoSuggestMode dependency property.

CaptionStyleProperty

Identifies the CaptionStyle dependency property.

CheckedMemberPathProperty

Identifies the CheckedMemberPath dependency property.

CursorBorderBrushProperty

Identifies the CursorBorderBrush dependency property.

DisabledMemberPathProperty

Identifies the DisabledMemberPath dependency property.

DisplayModeProperty

Identifies the DisplayMode dependency property.

DropDownHeightProperty

Identifies the DropDownHeight dependency property.

DropDownWidthProperty

Identifies the DropDownWidth dependency property.

FocusBrushProperty

Identifies the FocusBrush dependency property.

HeaderFormatProperty

Identifies the HeaderFormat dependency property.

HighlightColorProperty

Identifies the HighlightColor dependency property.

HighlightFontWeightProperty

Identifies the HighlightFontWeight dependency property.

IsDropDownOpenProperty

Identifies the IsDropDownOpen dependency property.

IsEditableProperty

Identifies the IsEditable dependency property.

IsHeaderFormatVisibleProperty

Identifies the IsHeaderFormatVisible dependency property.

IsSynchronizedWithCurrentItemProperty

Identifies the IsSynchronizedWithCurrentItem dependency property.

IsTagEditableProperty

Identifies the IsTagEditable dependency property.

ItemsSourceProperty

Identifies the ItemsSource dependency property.

MaxDropDownHeightProperty

Identifies the MaxDropDownHeight dependency property.

MaxDropDownWidthProperty

Identifies the MaxDropDownWidth dependency property.

MaxHeaderItemsProperty

Identifies the MaxHeaderItems dependency property.

MaxSelectedItemsProperty

Identifies the MaxSelectedItems dependency property.

MinDropDownHeightProperty

Identifies the MinDropDownHeight dependency property.

MinDropDownWidthProperty

Identifies the MinDropDownWidth dependency property.

MouseOverBorderBrushProperty

Identifies the MouseOverBorderBrush dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PlaceholderProperty

Identifies the Placeholder dependency property.

PopupStyleProperty

Identifies the PopupStyle dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

SelectAllCaptionProperty

Identifies the SelectAllCaption dependency property.

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

SelectedIndexProperty

Identifies the SelectedIndex dependency property.

SelectedItemProperty

Identifies the SelectedItem dependency property.

SelectedValuePathProperty

Identifies the SelectedValuePath dependency property.

SelectedValueProperty

Identifies the SelectedValue dependency property.

SelectionModeProperty

Identifies the SelectionMode dependency property.

SeparatorProperty

Identifies the Separator dependency property.

ShowCheckBoxesProperty

Identifies the ShowCheckBoxes dependency property.

ShowDropDownButtonProperty

Identifies the ShowDropDownButton dependency property.

ShowSelectAllProperty

Identifies the ShowSelectAll dependency property.

TagStyleProperty

Identifies the TagStyle dependency property.

TextProperty

Identifies the Text dependency property.

UnSelectAllCaptionProperty

Identifies the UnSelectAllCaption dependency property.

Properties

Name Description
AutoCompleteMode

Gets or sets an option that controls how automatic completion works for the C1MultiSelect.

AutoSuggestMode

Gets or sets a value that indicates the condition of filtering.

CaptionStyle

Gets or sets a style used for caption CheckBox.

CheckedMemberPath

Gets or sets the name of the property used to control the checkboxes placed next to each item.

CursorBorderBrush

Gets or sets the Brush used to highlight the item when it has focus.

DataCollection

Gets the underlying collection.

DisabledMemberPath

Gets or sets the name of the property used to control the enable or disable status to each item.

DisplayMode

Gets or sets a value that indicates whether to show tags or text.

DropDownHeight

Gets or sets the height of the drop-down box (set to Double.NaN to size automatically).

DropDownWidth

Gets or sets the width of the drop-down box (set to Double.NaN to size automatically).

FocusBrush

Gets or sets the Brush used to highlight the focused control.

GroupStyle

Gets a collection of GroupStyle objects that define the appearance of each level of groups.

HeaderFormat

Gets or sets the format string used to create the header content when the control has more than MaxHeaderItems items selected.

HighlightColor

Gets or sets the matched suggest text highlight color.

HighlightFontWeight

Gets or sets the matched suggest text font weight.

IsDropDownOpen

Gets or sets a value that indicates whether the drop-down is currently visible.

IsEditable

Gets or sets a value that determines whether the content of the input element should be editable or not.

IsGrouping

Gets a value that indicates whether the control is using grouping.

IsHeaderFormatVisible

Gets or sets a value indicating whether control displays the HeaderFormat text instead of selected items.

IsSynchronizedWithCurrentItem

Gets or sets a value that indicates whether a Selector should keep the SelectedItem synchronized with the current item in the Items property.

IsTagEditable

Gets or sets a value that determines whether the tags are editable or not.

Items

Gets the collection of ComboBox items.

ItemsSource

Gets or sets the collection of items.

ListBox

Get C1.WPF.ListView.C1ListView in drop down.

MaxDropDownHeight

Gets or sets maximum height constraint of the drop-down box.

MaxDropDownWidth

Gets or sets maximum width constraint of the drop-down box.

MaxHeaderItems

Gets or sets the maximum number of items to display on the control header.

MaxSelectedItems

Gets or sets the maximum number of items to selected on the control.

MinDropDownHeight

Gets or sets minimum height constraint of the drop-down box.

MinDropDownWidth

Gets or sets minimum width constraint of the drop-down box.

MouseOverBorderBrush

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

MouseOverBrush

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

Placeholder

Gets or sets the placeholder text.

PopupStyle

Gets or sets the style for the popup.

PressedBrush

Gets or sets the Brush used to paint a button when it is pressed.

SelectAllCaption

Gets or sets the caption for checkbox when execute SelectAll.

SelectedBackground

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

SelectedIndex

Gets or sets the index of the selected item.

SelectedItem

Gets or sets the selected item.

SelectedItems

Gets or set the list of items which are selected.

SelectedValue

Gets or sets the value of the selected item, obtained by using the SelectedValuePath.

SelectedValuePath

Gets or sets the property path that is used to get the SelectedValue property of the SelectedItem property.

SelectionMode

Gets or sets the selection behavior for the ListBox control.

Separator

Gets or sets string which is used as separator in multi-select mode.

ShowCheckBoxes

Gets or sets a value that indicates whether to show checkboxes for items in dropdown.

ShowDropDownButton

Gets or sets a value that indicates whether the control should display a drop-down button.

ShowSelectAll

Gets or sets a value that indicates whether show select all UI or not.

TagStyle

Gets or sets the style used for the tags in Tag mode.

Text

Gets the text shown in the control.

UnSelectAllCaption

Gets or sets the caption for checkbox when execute UnSelectAll.

Methods

Name Description
ChangeVisualStateCommon(bool)

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

ChangeVisualStateHeaderFormat(bool)

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

Dispose(bool)
OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
OnKeyDown(KeyEventArgs)
OnPreviewKeyDown(KeyEventArgs)

OnPreviewKeyDown

OnSelectionChanged(object, SelectionChangedEventArgs)

Called when the selection changed.

SelectAll()

Selects all the items in a C1MultiSelect.

You can use MaxSelectedItems to limit the number of items that can be selected.

UnselectAll()

Clears all the selection in a C1MultiSelect.

Events

Name Description
SelectionChanged

Occurs when the selection of a C1MultiSelect changes.