Table of Contents

Class MultiZomboBox

Namespace
The.WPF.Controls
Assembly
Instagile.WPF.dll

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

DependencyProperty

HideSelectedItemsProperty

public static readonly DependencyProperty HideSelectedItemsProperty

Field Value

DependencyProperty

PART_Border

public Border? PART_Border

Field Value

Border

PART_ContentPanel

public ItemsControl? PART_ContentPanel

Field Value

ItemsControl

SelectedItemsProperty

public static readonly DependencyProperty SelectedItemsProperty

Field Value

DependencyProperty

SeparatorProperty

public static readonly DependencyProperty SeparatorProperty

Field Value

DependencyProperty

Properties

ChipContainers

public IReadOnlyList<MultiZomboBoxChip> ChipContainers { get; }

Property Value

IReadOnlyList<MultiZomboBoxChip>

HideSelectedItems

public bool HideSelectedItems { get; set; }

Property Value

bool

SelectedItems

public IList? SelectedItems { get; set; }

Property Value

IList

Separator

public char Separator { get; set; }

Property Value

char

Methods

AddSelection(object?)

public void AddSelection(object? item)

Parameters

item object

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

IEnumerable<object>

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

e KeyboardFocusChangedEventArgs

The 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

item ZomboBoxItem

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

e KeyEventArgs

The KeyEventArgs that contains the event data.

RemoveSelection(object?)

public void RemoveSelection(object? item)

Parameters

item object