expressappframework-devexpress-dot-expressapp-dot-compositeview.md
A collection of Composite View’s View Items.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public IList<ViewItem> Items { get; }
Public ReadOnly Property Items As IList(Of ViewItem)
| Type | Description |
|---|---|
| IList<ViewItem> |
A collection of ViewItem class descendants.
|
A Detail View uses a collection of View Items to display the DetailView.CurrentObject. The items include:
The following code snippet obtains collection of View Items collection:
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