DataLayoutControl Class

A data-bound version of the LayoutControl.

Namespace: DevExpress.Xpf.LayoutControl

Assembly: DevExpress.Xpf.LayoutControl.v20.1.dll

Declaration

public class DataLayoutControl :
    LayoutControl
Public Class DataLayoutControl
    Inherits LayoutControl

Remarks

The DataLayoutControl is a data-bound version of its ancestor - the LayoutControl. The DataLayoutControl provides an easy way to create a layout for editing public properties of a bound object (DataLayoutControl.CurrentItem).

The following code snippet uses the Data Layout Control to display the data:

<Window x:Class="DataLayoutControl.View"
        ...
        xmlns:local="clr-namespace:DataLayoutControl"
        xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol">
    <Window.DataContext>
        <local:MainViewModel/>
    </Window.DataContext>
    <Grid>
        <dxlc:DataLayoutControl CurrentItem="{Binding SelectedObject}"/>
    </Grid>
</Window>

DataLayoutControl - Code Snippet Result

Refer to the Data Layout Control topic for more information.

See Also