GridResizeDirection Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies whether a GridSplitter control redistributes space between rows or between columns.
public enum class GridResizeDirection
public enum GridResizeDirection
type GridResizeDirection =
Public Enum GridResizeDirection
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Auto | 0 | Space is redistributed based on the values of the HorizontalAlignment, VerticalAlignment, ActualWidth, and ActualHeight properties of the GridSplitter. |
Columns | 1 | Space is redistributed between columns. |
Rows | 2 | Space is redistributed between rows. |
Remarks
Use this enumeration to set the GridSplitter.ResizeDirection property.
How the Auto
enumeration value affects the redistribution of space in a GridSplitter control depends on the following property values:
If the HorizontalAlignment property is not set to HorizontalAlignment.Stretch, space is redistributed between columns.
If the HorizontalAlignment property is set to HorizontalAlignment.Stretch and the VerticalAlignment property is not set to VerticalAlignment.Stretch, space is redistributed between rows.
If the following conditions are true, space is redistributed between columns:
The HorizontalAlignment is set to HorizontalAlignment.Stretch.
The VerticalAlignment is set to VerticalAlignment.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 HorizontalAlignment.Stretch.
VerticalAlignment is set to VerticalAlignment.Stretch.
ActualWidth is greater than the ActualHeight.
Applies to
See also
.NET