Dialog.SetPositive(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 positive 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 SetPositive(string label, Action<MixedReality.Toolkit.UX.DialogButtonEventArgs> action);
abstract member SetPositive : string * Action<MixedReality.Toolkit.UX.DialogButtonEventArgs> -> MixedReality.Toolkit.UX.IDialog
override this.SetPositive : string * Action<MixedReality.Toolkit.UX.DialogButtonEventArgs> -> MixedReality.Toolkit.UX.IDialog
Public Function SetPositive (label As String, action As Action(Of DialogButtonEventArgs)) 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.