Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GridResizeBehavior Enumeration

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

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

public enum GridResizeBehavior
<object property="enumerationMemberName" .../>

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:

  • When the VerticalAlignment property is set to Top, space is redistributed between the row that is specified for the GridSplitter and the row that is above that row.

  • When the VerticalAlignment property is set to Bottom, space is redistributed between the row that is specified for the GridSplitter and the row that is below that row.

  • When the VerticalAlignment property is set to Center, space is redistributed between the row that is above and the row that is below the row that is specified for the GridSplitter.

  • When the VerticalAlignment property is set to Stretch, space is redistributed between the row that is above and the row that is below the row that is specified for the GridSplitter.

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.

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

.NET Framework

Supported in: 4.5.3, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft