Export (0) Print
Expand All
Expand Minimize

GridResizeBehavior Enumeration

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

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public enum class GridResizeBehavior
public enum GridResizeBehavior
public enum GridResizeBehavior
<object property="EnumerationValue" .../>

 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:

  • When the HorizontalAlignment property is set to Left, space is redistributed between the column that is specified for the GridSplitter and the column that is to the left.

  • When the HorizontalAlignment property is set to Right, space is redistributed between the column that is specified for the GridSplitter and the column that is to the right.

  • When the HorizontalAlignment property is set to Center, space is redistributed between the columns that are to the left and right of the column that is specified for the GridSplitter.

  • When the HorizontalAlignment property is set to Stretch, space is redistributed between the columns that are to the left and right of the column that is specified for the GridSplitter.

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft