ToastContentBuilder.AddComboBox Method

Definition

Overloads

AddComboBox(String, ValueTuple<String,String>[])

Add a combo box / drop-down menu that contain options for user to select.

AddComboBox(String, String, ValueTuple<String,String>[])

Add a combo box / drop-down menu that contain options for user to select.

AddComboBox(String, String, String, IEnumerable<ValueTuple<String,String>>)

Add a combo box / drop-down menu that contain options for user to select.

AddComboBox(String, String, String, ValueTuple<String,String>[])

Add a combo box / drop-down menu that contain options for user to select.

AddComboBox(String, ValueTuple<String,String>[])

Add a combo box / drop-down menu that contain options for user to select.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddComboBox (string id, params (string comboBoxItemId, string comboBoxItemContent)[] choices);
member this.AddComboBox : string * ValueTuple<string, string>[] -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddComboBox (id As String, ParamArray choices As ValueTuple(Of String, String)()) As ToastContentBuilder

Parameters

id
String

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

choices
ValueTuple<String,String>[]

List of choices that will be available for user to select.

Returns

The current instance of ToastContentBuilder

Applies to

AddComboBox(String, String, ValueTuple<String,String>[])

Add a combo box / drop-down menu that contain options for user to select.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddComboBox (string id, string defaultSelectionBoxItemId, params (string comboBoxItemId, string comboBoxItemContent)[] choices);
member this.AddComboBox : string * string * ValueTuple<string, string>[] -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddComboBox (id As String, defaultSelectionBoxItemId As String, ParamArray choices As ValueTuple(Of String, String)()) As ToastContentBuilder

Parameters

id
String

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

defaultSelectionBoxItemId
String

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

choices
ValueTuple<String,String>[]

List of choices that will be available for user to select.

Returns

The current instance of ToastContentBuilder

Applies to

AddComboBox(String, String, String, IEnumerable<ValueTuple<String,String>>)

Add a combo box / drop-down menu that contain options for user to select.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddComboBox (string id, string title, string defaultSelectionBoxItemId, System.Collections.Generic.IEnumerable<(string comboBoxItemId, string comboBoxItemContent)> choices);
member this.AddComboBox : string * string * string * seq<ValueTuple<string, string>> -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddComboBox (id As String, title As String, defaultSelectionBoxItemId As String, choices As IEnumerable(Of ValueTuple(Of String, String))) As ToastContentBuilder

Parameters

id
String

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

title
String

Title text to display above the Combo Box.

defaultSelectionBoxItemId
String

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

choices
IEnumerable<ValueTuple<String,String>>

List of choices that will be available for user to select.

Returns

The current instance of ToastContentBuilder

Applies to

AddComboBox(String, String, String, ValueTuple<String,String>[])

Add a combo box / drop-down menu that contain options for user to select.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddComboBox (string id, string title, string defaultSelectionBoxItemId, params (string comboBoxItemId, string comboBoxItemContent)[] choices);
member this.AddComboBox : string * string * string * ValueTuple<string, string>[] -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddComboBox (id As String, title As String, defaultSelectionBoxItemId As String, ParamArray choices As ValueTuple(Of String, String)()) As ToastContentBuilder

Parameters

id
String

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

title
String

Title text to display above the Combo Box.

defaultSelectionBoxItemId
String

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

choices
ValueTuple<String,String>[]

List of choices that will be available for user to select.

Returns

The current instance of ToastContentBuilder

Applies to