Class MultiZomboBox
Multi-selection variant of ZomboBox with chip display for selected items.
public sealed class MultiZomboBox : ZomboBase, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
- Inheritance
-
MultiZomboBox
- Implements
- Inherited Members
Fields
ChipContainersProperty
public static readonly DependencyProperty ChipContainersProperty
Field Value
HideSelectedItemsProperty
public static readonly DependencyProperty HideSelectedItemsProperty
Field Value
PART_Border
public Border? PART_Border
Field Value
PART_ContentPanel
public ItemsControl? PART_ContentPanel
Field Value
SelectedItemsProperty
public static readonly DependencyProperty SelectedItemsProperty
Field Value
SeparatorProperty
public static readonly DependencyProperty SeparatorProperty
Field Value
Properties
ChipContainers
public IReadOnlyList<MultiZomboBoxChip> ChipContainers { get; }
Property Value
HideSelectedItems
public bool HideSelectedItems { get; set; }
Property Value
SelectedItems
public IList? SelectedItems { get; set; }
Property Value
Separator
public char Separator { get; set; }
Property Value
Methods
AddSelection(object?)
public void AddSelection(object? item)
Parameters
itemobject
ConfirmPendingSelection()
Called when Enter is pressed to confirm the current selection/text.
protected override void ConfirmPendingSelection()
GetFilteredItems()
Gets the items to display in the dropdown, possibly filtered.
protected override IEnumerable<object>? GetFilteredItems()
Returns
HandleFocusLoss()
Called when the control loses keyboard focus.
protected override void HandleFocusLoss()
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters
eKeyboardFocusChangedEventArgsThe KeyboardFocusChangedEventArgs that contains the event data.
OnItemSelected(ZomboBoxItem)
Called when an item is selected via click or keyboard.
protected override void OnItemSelected(ZomboBoxItem item)
Parameters
itemZomboBoxItem
OnPreviewKeyDown(KeyEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
eKeyEventArgsThe KeyEventArgs that contains the event data.
RemoveSelection(object?)
public void RemoveSelection(object? item)
Parameters
itemobject