Skip to main content

FlowLayoutControl.IsFlowBreak Attached Property

Gets or sets whether the flow of the control’s items is wrapped at the preceding item and the current item must start a new column or row. When applied to a Tile within a TileLayoutControl, this property allows you to start a new group. This is an attached property.

Namespace: DevExpress.Xpf.LayoutControl

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

NuGet Package: DevExpress.Wpf.LayoutControl

Declaration

Returns

Type Description
Boolean

A Boolean value that specifies whether an item must start a new layer.

Remarks

Use the IsFlowBreak attached property to specify that a specific item must forcibly start a new layer (column or row, according to the FlowLayoutControl.Orientation property). In the following example, the IsFlowBreak property is enabled for Item 3 and Item 6:

<dxlc:FlowLayoutControl >
    <local:SampleLayoutItem Caption="Item 1"/>
    <local:SampleLayoutItem Caption="Item 2"/>
    <local:SampleLayoutItem Caption="Item 3" dxlc:FlowLayoutControl.IsFlowBreak="True"/>
    <local:SampleLayoutItem Caption="Item 4"/>
    <local:SampleLayoutItem Caption="Item 5"/>
    <local:SampleLayoutItem Caption="Item 6" dxlc:FlowLayoutControl.IsFlowBreak="True"/>
    <local:SampleLayoutItem Caption="Item 7"/>
    <local:SampleLayoutItem Caption="Item 8"/>
    <local:SampleLayoutItem Caption="Item 9"/>
</dxlc:FlowLayoutControl>

FlowLayoutControl_FlowBreak_Enabled

The FlowLayoutControl.AllowAddFlowBreaksDuringItemMoving property allows an end-user to start new layers at runtime when moving an item. To enable runtime items to move, use the FlowLayoutControl.AllowItemMoving property.

When applied to a Tile within a TileLayoutControl, this property allows you to start a new group.

See Also