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
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.