IDialog.SetNeutral(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 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.