Create a context object for the dialog
A context object enables you to reuse the same dialog type in different panes and for different purposes.
- Create the context object:
- In theProject viewpane, right-click theUIfolder and select .
- Hover-over the object, select, and enter
ConfirmationDialogContext.
- Convert the context object into an object type:
- In theType viewpane, double-clickUser interface.
- From theProject viewpane, dragConfirmationDialogContextinto theType viewpane.In theProject viewpane,ConfirmationDIalogContextType (type)appears.
- In theProject viewpane, right-clickConfirmationDialogContextand selectDelete.
- Configure the context object type:
- In theProject viewpane, selectConfirmationDialogContextType (type).
- In thePropertiespane, at the top, selectand select
Variable. - Hover-over the variable, selectand enter
Message. - SelectInt32and selectLocalizedText.SUGGERIMENTO: If you do not see the required option, select theShow allcheck box.
- Remove theMessagevariable value.
- In theProject viewpane, right-clickConfirmationDialogContextType (type)and select .
- Hover-over the method invocation, selectand enter
OnConfirm. - In theProject viewpane, right-clickConfirmationDialogContextType (type)and select .
- Hover-over the method invocation, selectand enter
OnCancel.
Fornire un feedback