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

GridSplitter.ResizeBehavior Property

Gets or sets which columns or rows are resized relative to the column or row for which the GridSplitter control is defined.

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 GridResizeBehavior ResizeBehavior { get; set; }
<object ResizeBehavior="GridResizeBehavior" .../>

Property Value

Type: System.Windows.Controls.GridResizeBehavior
One of the enumeration values that indicates which columns or rows are resized by this GridSplitter control. The default is GridResizeBehavior.BasedOnAlignment.

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 ResizeBehavior property.

myGridSplitter.ResizeBehavior = GridResizeBehavior.CurrentAndNext;
<GridSplitter ResizeBehavior="CurrentAndNext" Width="5"
              Grid.Column="3"  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