[]
        
(Showing Draft Content)

C1.WPF.Input.C1MultiSelect

C1MultiSelect Class

A C1TagEditor as base editor with C1CheckList as drop-down.

Namespace: C1.WPF.Input
Assembly: C1.WPF.Input.4.6.2.dll
Syntax
[TemplatePart(Name = "Editor", Type = typeof(C1TagEditor))]
[TemplatePart(Name = "CheckList", Type = typeof(C1CheckList))]
[TemplatePart(Name = "HeaderFormat", Type = typeof(ContentControl))]
[TemplatePart(Name = "SuggestList", Type = typeof(C1CheckList))]
[TemplatePart(Name = "DropDown", Type = typeof(C1DropDown))]
[TemplateVisualState(Name = "HideHeaderFormat", GroupName = "HeaderFormatStates")]
[TemplateVisualState(Name = "ShowHeaderFormat", GroupName = "HeaderFormatStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[StyleTypedProperty(Property = "TagStyle", StyleTargetType = typeof(Border))]
public class C1MultiSelect : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage

Constructors

Name Description
C1MultiSelect()

Initializes a new instance of a C1MultiSelect.

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.

DisabledMemberPathProperty

Identifies the DisabledMemberPath dependency property.

DisplayModeProperty

Identifies the DisplayMode dependency property.

DropdownHeightProperty

Identifies the DropdownHeight dependency property.

DropdownWidthProperty

Identifies the DropdownWidth dependency property.

HeaderFormatProperty

Identifies the HeaderFormat dependency property.

HighlightColorProperty

Identifies the HighlightColor dependency property.

HighlightFontWeightProperty

Identifies the HighlightFontWeight dependency property.

IsDroppedDownProperty

Identifies the IsDroppedDown 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.

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.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PlaceHolderProperty

Identifies the PlaceHolder 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 C1.WPF.Input.C1MultiSelect.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.

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).

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 hightlight color.

HighlightFontWeight

Gets or sets the matched suggest text font weight.

IsDroppedDown

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 a value that indicates whether header format is shown.

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 used to generate the content of the ItemsControl.

ListBox

Get C1CheckList 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.

MouseOverBrush

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

PlaceHolder

Gets or sets the string shown as a hint when the control is empty.

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.

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.

OnApplyTemplate()

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

OnPropertyChanged(DependencyPropertyChangedEventArgs)

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

OnSelectionChanged(object, SelectionChangedEventArgs)

Called when the selection changed.

SelectAll()

Selects all the items in a C1MultiSelect.

UnselectAll()

Clears all the selection in a C1MultiSelect.

Events

Name Description
IsMouseOverChanged

Event raised when the IsMouseOver property has changed.

SelectionChanged

Occurs when the selection of a C1MultiSelect changes.