Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

GridResizeDirection Enumeration

Specifies whether a GridSplitter control redistributes space between rows or between columns.

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

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

 Member nameDescription
AutoSpace is redistributed based on the values of the HorizontalAlignment, VerticalAlignment, ActualWidth, and ActualHeight properties of the GridSplitter.  
  • If the HorizontalAlignment is not set to Stretch, space is redistributed between columns.

  • If the HorizontalAlignment is set to Stretch and the VerticalAlignment is not set to Stretch, space is redistributed between rows.

  • If the following conditions are true, space is redistributed between columns:

    • The HorizontalAlignment is set to Stretch.

    • The VerticalAlignment is set to Stretch.

    • The ActualWidth is less than or equal to the ActualHeight.

  • If the following conditions are true, space is redistributed between rows:

    • HorizontalAlignment is set to Stretch.

    • VerticalAlignment is set to Stretch.

    • ActualWidth is greater than the ActualHeight.

ColumnsSpace is redistributed between columns. 
RowsSpace is redistributed between rows. 

Use this enumeration to set the ResizeDirection property of the GridSplitter control.

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:
© 2015 Microsoft