Class
ItemPickerContext

Represents a context that holds information about the item picker that is displayed in the chat.

Definition

Constructors

ItemPickerContext()

Initializes a new instance of the ItemPickerContext class.

Declaration

cs-api-definition
public ItemPickerContext()

Properties

ItemsSource

Gets or sets the collection of items displayed by the picker.

Declaration

cs-api-definition
public IEnumerable ItemsSource { get; set; }

Property Value

IEnumerable

SelectedItem

Gets or sets the selected item.

Declaration

cs-api-definition
public object SelectedItem { get; set; }

Property Value

object

SelectedItems

Gets or sets the collection of selected items.

Declaration

cs-api-definition
public IEnumerable SelectedItems { get; set; }

Property Value

IEnumerable

SelectionMode

Gets or sets the selection mode of the picker.

Declaration

cs-api-definition
public SelectionMode SelectionMode { get; set; }

Property Value

SelectionMode

Methods

CanExecuteOk()

Determines whether the Ok button of the picker can be clicked.

Declaration

cs-api-definition
public override bool CanExecuteOk()

Returns

bool

True if the button should be enabled, false otherwise.

Overrides PickerContext.CanExecuteOk()