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, select , and enterConfirmationDialogContext.
- 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, select and selectVariable.
- Hover-over the variable, select and enterMessage.
- SelectInt32and selectLocalizedText.TIP: If you do not see the required option, select theShow allcheckbox.
- Remove theMessagevariable value.
- InProject view, right-clickConfirmationDialogContextType (type)and select .
- Hover-over the method invocation, select and enterOnConfirm.
- InProject view, right-clickConfirmationDialogContextType (type)and select .
- Hover-over the method invocation, select and enterOnCancel.
Provide Feedback