CompositeView.Items Property
A collection of Composite View’s View Items.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v26.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
| Type | Description |
|---|---|
| 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:
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