Back to Devexpress

LayoutGroup.ItemLabelsAlignment Property

wpf-devexpress-dot-xpf-dot-layoutcontrol-dot-layoutgroup-5e0b6296.md

latest3.4 KB
Original Source

LayoutGroup.ItemLabelsAlignment Property

Gets or sets how content regions of LayoutItems are aligned, according to their labels. This is a dependency property.

Namespace : DevExpress.Xpf.LayoutControl

Assembly : DevExpress.Xpf.LayoutControl.v25.2.dll

NuGet Package : DevExpress.Wpf.LayoutControl

Declaration

csharp
public virtual LayoutItemLabelsAlignment ItemLabelsAlignment { get; set; }
vb
Public Overridable Property ItemLabelsAlignment As LayoutItemLabelsAlignment

Property Value

TypeDescription
LayoutItemLabelsAlignment

A LayoutItemLabelsAlignment value that specifies how content regions of LayoutItems are aligned.

|

Available values:

NameDescription
Default

Content regions of LayoutItems in the current group are aligned taking into account the labels of LayoutItems in other groups (Groups that have the ItemLabelsAlignment property set to Local are not taken into account).

| | Local |

Content regions of LayoutItems in the current group are aligned locally, taking into account labels of nested groups, and disregarding labels in other groups.

|

Remarks

See Aligning contents of LayoutItems to learn more.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ItemLabelsAlignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-wpf-drill-through/CS/Viewer/MainWindow.xaml#L22

xml
<dxlc:GroupBox TitleVisibility="Hidden" HorizontalAlignment="Left" >
    <dxlc:LayoutGroup ItemLabelsAlignment="Local" Orientation="Vertical" Width="150" >
        <dxlc:LayoutItem Label="Order Id: ">

reporting-wpf-wizard-custom-page/CS/App.xaml#L51

xml
</dxlc:LayoutGroup>
<dxlc:LayoutGroup Margin="24,0,0,0" ItemLabelsAlignment="Local" Orientation="Vertical" >
    <dxlc:LayoutItem Label="Right Margin:" >

See Also

Aligning contents of LayoutItems

LayoutGroup Class

LayoutGroup Members

DevExpress.Xpf.LayoutControl Namespace