GridSplitter::ResizeDirection Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

property GridResizeDirection ResizeDirection {
	GridResizeDirection get();
	void set(GridResizeDirection value);

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.

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.

Identifier field


Metadata properties set to true


The following example shows how to set the ResizeDirection property.

No code example is currently available or this language may not be supported.
<GridSplitter ResizeDirection="Columns" Width="5"
              Grid.Column="2"  Grid.RowSpan="2"/>

.NET Framework
Available since 3.0
Return to top