Skip to main content
A newer version of this page is available. .

CompositeView.Items Property

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll

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