IDialog.SetNegative(String, Action<DialogButtonEventArgs>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a negative 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 SetNegative(string label, Action<MixedReality.Toolkit.UX.DialogButtonEventArgs> action = default);
abstract member SetNegative : string * Action<MixedReality.Toolkit.UX.DialogButtonEventArgs> -> MixedReality.Toolkit.UX.IDialog
Public Function SetNegative (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.