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:
- InProject view, right-clickUIand select .
- Hover-over the object, selectEditConfirmationDialogContext.
- Convert the context object into an object type:
- InType view, double-clickUser interface.
- FromProject view, dragConfirmationDialogContextinto theType viewpane.InProject view,ConfirmationDIalogContextType (type)appears.
- InProject view, right-clickConfirmationDialogContextand selectDelete.
- Configure the context object type:
- InProject view, selectConfirmationDialogContextType (type).
- InProperties, at the top, selectAddVariable.
- Hover-over the variable, selectEditMessage.
- SelectInt32and selectLocalizedText.TIP: If you do not see the required option, select theShow allcheck box.
- Remove theMessagevariable value.
- InProject viewpane, right-clickConfirmationDialogContextType (type)and select .
- Hover-over the method invocation, selectEditOnConfirm.
- InProject view, right-clickConfirmationDialogContextType (type)and select .
- Hover-over the method invocation, selectEditOnCancel.
Provide Feedback