Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ResizeDirection Property

GridSplitter.ResizeDirection Property

Gets or sets a value that indicates whether the GridSplitter control resizes rows or columns.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public GridResizeDirection ResizeDirection { get; set; }
<object ResizeDirection="GridResizeDirection" .../>

Property Value

Type: System.Windows.Controls.GridResizeDirection
One of the enumeration values that specifies whether to resize rows or columns. The default is GridResizeDirection.Auto.

Identifier field


Metadata properties set to true


To specify a GridSplitter that resizes rows or columns, set the HorizontalAlignment and VerticalAlignment properties. If you cannot achieve the desired behavior by setting the HorizontalAlignment and VerticalAlignment properties, change the ResizeDirection or ResizeBehavior default values. For more information, see How to: Resize Rows with a GridSplitter and How to: Resize Columns with a GridSplitter.

The following example shows how to set the ResizeDirection property.

myGridSplitter.ResizeDirection = GridResizeDirection.Columns;
<GridSplitter ResizeDirection="Columns" Width="5"
              Grid.Column="2"  Grid.RowSpan="2"/>

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft