expressappframework-devexpress-dot-expressapp-dot-view-fb4bb703.md
Specifies a View‘s caption.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public virtual string Caption { get; set; }
Public Overridable Property Caption As String
| Type | Description |
|---|---|
| String |
A string value representing the current View’s caption.
|
A View’s caption is included in the caption of the Window which contains this View.
By default, this property is set to the value of the Caption attribute from the Application Model node specified by the View.Model property.
When setting a value to this property, the View.CaptionChanged event is raised.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Caption 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.
if (mode == STR_NewViewVariant_Id) {
parameter.Caption = string.Format("{0}_{1:g}", View.Caption, DateTime.Now);
viewCaption = CaptionHelper.GetLocalizedText("Texts", "NewViewVariantParameterCaption");
void UpdateControls() {
label.Text = "The current View is " + View.Caption;
if (View.CurrentObject != null) {
DetailView filterDetailView = Application.CreateDetailView(nonPersistentObjectSpace, newViewFilterContainer);
filterDetailView.Caption = string.Format("Filter for the {0} ListView", View.Caption);
Application.ShowViewStrategy.ShowViewInPopupWindow(filterDetailView, () => FilterDetailView_OK(filterDetailView));
Private Overloads Sub UpdateControls()
label.Text = "The current View is " & View.Caption
If View.CurrentObject IsNot Nothing Then
See Also