DataLayoutControl.CurrentItem Property
Gets or sets the object whose properties are being currently displayed and edited by the DataLayoutControl. This is a dependency property.
Namespace: DevExpress.Xpf.LayoutControl
Assembly: DevExpress.Xpf.LayoutControl.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Object | An object whose properties are being currently edited. |
#Remarks
When you bind an object to the CurrentItem property, the DataLayoutControl generates a layout (DataLayoutItems with embedded editors) to display and edit the bound object's public properties.
If the new and old values of the CurrentItem property have the same type, the layout is not regenerated. The DataContext of generated items is only updated.
When the CurrentItem object's value is changed or a new layout is generated, the DataLayoutControl.CurrentItemChanged event fires.