GridSplitter.ResizeDirection Property
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.
Gets or sets a value that indicates whether the GridSplitter control resizes rows or columns.
public:
property System::Windows::Controls::GridResizeDirection ResizeDirection { System::Windows::Controls::GridResizeDirection get(); void set(System::Windows::Controls::GridResizeDirection value); };
public System.Windows.Controls.GridResizeDirection ResizeDirection { get; set; }
member this.ResizeDirection : System.Windows.Controls.GridResizeDirection with get, set
Public Property ResizeDirection As GridResizeDirection
One of the enumeration values that specifies whether to resize rows or columns. The default is Auto.
The following example shows how to set the ResizeDirection property.
myGridSplitter.ResizeDirection = GridResizeDirection.Columns;
myGridSplitter.ResizeDirection = GridResizeDirection.Columns
<GridSplitter ResizeDirection="Columns" Width="5"
Grid.Column="2" Grid.RowSpan="2"/>
To specify a GridSplitter that resizes rows or columns, set the HorizontalAlignment and VerticalAlignment properties. If you cannot achieve the desired behavior by setting the HorizontalAlignment and VerticalAlignment properties, change the ResizeDirection or ResizeBehavior default values. For more information, see How to: Resize Rows with a GridSplitter and How to: Resize Columns with a GridSplitter.
Item | Value |
---|---|
Identifier field | ResizeDirectionProperty |
Metadata properties set to true |
None |
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: