Skip to main content
.NET Framework Class Library
GridResizeBehavior Enumeration

Specifies the rows or columns that are resized by a GridSplitter control.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
Syntax
Public Enumeration GridResizeBehavior
public enum GridResizeBehavior
public enum class GridResizeBehavior
type GridResizeBehavior
public enum GridResizeBehavior
<object property="enumerationMemberName" .../>
Members
Member nameDescription
BasedOnAlignmentSpace is redistributed based on the value of the HorizontalAlignment and VerticalAlignment properties.

If the value of the ResizeDirection property specifies that space is redistributed between rows, the redistribution follows these guidelines:

If the value of the ResizeDirection property specifies that space is redistributed between columns, the redistribution follows these guidelines:

CurrentAndNextFor a horizontal GridSplitter, space is redistributed between the row that is specified for the GridSplitter and the next row that is below it. For a vertical GridSplitter, space is redistributed between the column that is specified for the GridSplitter and the next column that is to the right.
PreviousAndCurrentFor a horizontal GridSplitter, space is redistributed between the row that is specified for the GridSplitter and the next row that is above it. For a vertical GridSplitter, space is redistributed between the column that is specified for the GridSplitter and the next column that is to the left.
PreviousAndNextFor a horizontal GridSplitter, space is redistributed between the rows that are above and below the row that is specified for the GridSplitter. For a vertical GridSplitter, space is redistributed between the columns that are to the left and right of the column that is specified for the GridSplitter.
Remarks

This enumeration is used to set the value of the ResizeBehavior property of a GridSplitter.

Version Information

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1