Localization
The string resources below are available to localize or customize built-in strings utilized by user prompt. Each string resource is defined in a specific assembly and corresponding namespace.
See the Customizing String Resources topic for additional details.
Customize String Resources
The following string resources are available to localize or customize built-in strings:
| Resource key | Description |
|---|---|
UICommandCloseWindowText |
The text displayed as the tooltip for the Close button used by UserPromptWindow. The default value is "Close". |
UIDialogButtonAbortText |
The label of the standard Abort button. The default value is "_Abort". |
UIDialogButtonCancelText |
The label of the standard Cancel button. The default value is "Cancel". |
UIDialogButtonCloseText |
The label of the standard Close button. The default value is "C_lose". |
UIDialogButtonHelpText |
The label of the standard Help button. The default value is "Help". |
UIDialogButtonIgnoreText |
The label of the standard Ignore button. The default value is "_Ignore". |
UIDialogButtonNoText |
The label of the standard No button. The default value is "_No". |
UIDialogButtonOKText |
The label of the standard OK button. The default value is "OK". |
UIDialogButtonRetryText |
The label of the standard Retry button. The default value is "_Retry". |
UIDialogButtonYesText |
The label of the standard Yes button. The default value is "_Yes". |
UIDialogTitleErrorText |
The default title used by UserPromptWindow when an explicit title is not defined and UserPromptControl.StandardStatusImage is set to Error. The default value is "Error". |
UIDialogTitleIndeterminateText |
The default title used by UserPromptWindow when an explicit title is not defined and UserPromptControl.StandardStatusImage is set to None or UserPromptControl.StatusImageSource is populated. The default value is String.Empty. |
UIDialogTitleInformationText |
The default title used by UserPromptWindow when an explicit title is not defined and UserPromptControl.StandardStatusImage is set to Information. The default value is "Information". |
UIDialogTitleQuestionText |
The default title used by UserPromptWindow when an explicit title is not defined and UserPromptControl.StandardStatusImage is set to Question. The default value is "Question". |
UIDialogTitleWarningText |
The default title used by UserPromptWindow when an explicit title is not defined and UserPromptControl.StandardStatusImage is set to Warning. The default value is "Warning". |
UIExceptionPromptCopyElementText |
The label of the UIElement displayed on the exception prompt to copy the stack trace. The default value is "Copy to Clipboard". |
UIExceptionPromptDetailsLabelText |
The text of the label displayed on the exception prompt above the stack trace details. The default value is "_Stack Trace:". |
UIExceptionPromptToggleDetailsCollapsedText |
The text of the expanded information toggle on the exception prompt when the stack trace is collapsed. The default value is "Show _details". |
UIExceptionPromptToggleDetailsExpandedText |
The text of the expanded information toggle on the exception prompt when the stack trace is expanded. The default value is "Hide _details". |
This code shows how to set custom values for string resources.
ActiproSoftware.Products.Shared.SR.SetCustomString(ActiproSoftware.Products.Shared.SRName.UIDialogButtonRetryText.ToString(), "T_ry Again");
ActiproSoftware.Products.Shared.SR.SetCustomString(ActiproSoftware.Products.Shared.SRName.UIDialogButtonIgnoreText.ToString(), "Cont_inue");