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 enterConfirmationDialogContext.
- 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, select and selectVariable.
- Hover-over the variable, select and enterMessage.
- SelectInt32and selectLocalizedText.MANCIA: 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, select and enterOnConfirm.
- In theProject viewpane, right-clickConfirmationDialogContextType (type)and select .
- Hover-over the method invocation, select and enterOnCancel.
Fornire un feedback