Back to Devexpress

CompositeView.Items Property

expressappframework-devexpress-dot-expressapp-dot-compositeview.md

latest2.9 KB
Original Source

CompositeView.Items Property

A collection of Composite View’s View Items.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public IList<ViewItem> Items { get; }
vb
Public ReadOnly Property Items As IList(Of ViewItem)

Property Value

TypeDescription
IList<ViewItem>

A collection of ViewItem class descendants.

|

Remarks

A Detail View uses a collection of View Items to display the DetailView.CurrentObject. The items include:

  • Property Editors that display object’s properties
  • Other View Items added in the Application Model

The following code snippet obtains collection of View Items collection:

csharp
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 following methods:

You can also modify this collection and each View Item individually in the Application Model’s Views | <DetailView> | Items node.

See Also

GetItems<T>()

FindItem(String)

CompositeView Class

CompositeView Members

DevExpress.ExpressApp Namespace