Skip to main content
.NET Framework 4.6.2+

CompositeView.Items Property

Provides access to a Composite View’s View Items collection.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public IList<ViewItem> Items { get; }

Property Value

Type Description
IList<ViewItem>

A collection of the ViewItem class descendants.

Remarks

A Detail View represents the DetailView.CurrentObject using a collection of View Items: Property Editors which display the object’s properties and other View Items added in the Application Model. The following code demonstrates how to get the collection of View Items:

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Editors;
// ...
public class MyViewController : ViewController<DetailView> {
    protected override void OnActivated() {
        base.OnActivated();
        foreach (ViewItem item in View.Items) {
            // ...
        }
    }
    // ...
}

To modify the current Composite View’s View Item collection, use the CompositeView.AddItem, CompositeView.InsertItem and CompositeView.RemoveItem methods. You can also modify this collection and each View Item individually, in the Application Model’s Views | <DetailView> | Items node.

See Also