Language
Edit

IDialog.SetNeutral(String, Action<DialogButtonEventArgs>) Method

Definition

Adds a neutral option on the Dialog. action will be invoked when the option is selected. label will be affixed to the associated button.

public MixedReality.Toolkit.UX.IDialog SetNeutral(string label, Action<MixedReality.Toolkit.UX.DialogButtonEventArgs> action = default);
abstract member SetNeutral : string * Action<MixedReality.Toolkit.UX.DialogButtonEventArgs> -> MixedReality.Toolkit.UX.IDialog
Public Function SetNeutral (label As String, Optional action As Action(Of DialogButtonEventArgs) = Nothing) As IDialog

Parameters

label
String

The text to affix to the button.

action
Action<DialogButtonEventArgs>

The action to invoke when the button is selected.

Returns

This IDialog object, so to enable function chaining.

Applies to