Επεξεργασία

Κοινή χρήση μέσω


GridSplitter.ResizeDirection Property

Definition

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

Property Value

One of the enumeration values that specifies whether to resize rows or columns. The default is Auto.

Examples

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"/>

Remarks

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.

Dependency Property Information

Identifier field ResizeDirectionProperty
Metadata properties set to true None

Applies to