corelibraries-devexpress-dot-mvvm-dot-xpf-dot-invaliditemexceptionargs-92afc1b9.md
Gets or sets the error window’s caption.
Namespace : DevExpress.Mvvm.Xpf
Assembly : DevExpress.Mvvm.v25.2.dll
NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation
public string WindowCaption { get; set; }
Public Property WindowCaption As String
| Type | Description |
|---|---|
| String |
The error window’s caption.
|
Set the ExceptionMode property to DisplayError to display an error message box with text specified by the ErrorText property. Use the WindowCaption property to specify the message box’s caption.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the WindowCaption property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-data-grid-initialize-new-item-row-with-default-values/CS/NewItemRow_MVVM/MainViewModel.cs#L52
args.ErrorText = "Please enter the Product Name.";
args.WindowCaption = "Input Error";
}
wpf-data-grid-initialize-new-item-row-with-default-values/VB/NewItemRow_MVVM/MainViewModel.vb#L60
args.ErrorText = "Please enter the Product Name."
args.WindowCaption = "Input Error"
End If
See Also
InvalidItemExceptionArgs Class