DockLayoutControl.AllowVerticalSizing Attached Property
Gets or sets whether vertical re-sizing is enabled for a specific child element of the DockLayoutControl. This is an attached property.
Namespace: DevExpress.Xpf.LayoutControl
Assembly: DevExpress.Xpf.LayoutControl.v14.2.dll
#Declaration
#Returns
Type | Description |
---|---|
Boolean | true if vertical re-sizing is enabled for a specific child element of the Dock |
#Remarks
If the AllowVerticalSizing property is set to true for a specific item, a sizer is displayed next to the item, enabling vertical re-sizing.
The DockLayoutControl.AllowItemSizing property allows you to temporarily disable horizontal and vertical re-sizing of items within the DockLayoutControl. If this property is set to false, the AllowVerticalSizing and DockLayoutControl.AllowHorizontalSizing attached properties are ignored.
#Examples
The following code shows how to enable horizontal and vertical item sizing within a DockLayoutControl via the DockLayoutControl.AllowHorizontalSizing and DockLayoutControl.AllowVerticalSizing attached properties. Vertical sizing is enabled for GroupBox 1. Horizontal sizing is enabled for GroupBox 2 and GroupBox 3.
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
x:Class="SilverlightApplication10.MainPage"
>
<Grid x:Name="LayoutRoot" Background="White">
<lc:DockLayoutControl>
<lc:GroupBox lc:DockLayoutControl.Dock="Top" Height="70" Header="GroupBox 1"
lc:DockLayoutControl.AllowVerticalSizing="True"/>
<lc:GroupBox lc:DockLayoutControl.Dock="Right" Header="GroupBox 2"
lc:DockLayoutControl.AllowHorizontalSizing="True"/>
<lc:GroupBox lc:DockLayoutControl.Dock="Left" Header="GroupBox 3"
lc:DockLayoutControl.AllowHorizontalSizing="True"/>
<lc:GroupBox lc:DockLayoutControl.Dock="Client" Header="GroupBox 4"/>
</lc:DockLayoutControl>
</Grid>
</UserControl>