Edit

Share via


ToastSelectionBox Class

Definition

A selection box control, which lets users pick from a dropdown list of options.

public sealed class ToastSelectionBox : Microsoft.Toolkit.Uwp.Notifications.IToastInput
type ToastSelectionBox = class
    interface IToastInput
Public NotInheritable Class ToastSelectionBox
Implements IToastInput
Inheritance
ToastSelectionBox
Implements

Constructors

ToastSelectionBox(String)

Initializes a new instance of the ToastSelectionBox class. A Toast SelectionBox input control with the required elements.

Properties

DefaultSelectionBoxItemId

Gets or sets which item is selected by default, and refers to the Id property of ToastSelectionBoxItem. If you do not provide this, the default selection will be empty (user sees nothing).

Id

Gets the required ID property used so that developers can retrieve user input once the app is activated.

Items

Gets the selection items that the user can pick from in this SelectionBox. Only 5 items can be added.

Title

Gets or sets title text to display above the SelectionBox.

Applies to