GridResizeBehavior 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 the rows or columns that are resized by a GridSplitter control.
public enum class GridResizeBehavior
public enum GridResizeBehavior
type GridResizeBehavior =
Public Enum GridResizeBehavior
- Inheritance
Fields
Name | Value | Description |
---|---|---|
BasedOnAlignment | 0 | Space is redistributed based on the value of the HorizontalAlignment and VerticalAlignment properties. |
CurrentAndNext | 1 | For 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. |
PreviousAndCurrent | 2 | For 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. |
PreviousAndNext | 3 | For 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 GridSplitter.ResizeBehavior property.
The behavior of the ResizeBehavior property with the BasedOnAlignment
enumeration value is determined as follows:
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 VerticalAlignment.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 VerticalAlignment.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 VerticalAlignment.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 VerticalAlignment.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 HorizontalAlignment.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 HorizontalAlignment.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 HorizontalAlignment.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 HorizontalAlignment.Stretch, space is redistributed between the columns that are to the left and right of the column that is specified for the GridSplitter.