Breyta

Deila með


GridSplitter.ResizeBehavior Property

Definition

Gets or sets which columns or rows are resized relative to the column or row for which the GridSplitter control is defined.

public:
 property System::Windows::Controls::GridResizeBehavior ResizeBehavior { System::Windows::Controls::GridResizeBehavior get(); void set(System::Windows::Controls::GridResizeBehavior value); };
public System.Windows.Controls.GridResizeBehavior ResizeBehavior { get; set; }
member this.ResizeBehavior : System.Windows.Controls.GridResizeBehavior with get, set
Public Property ResizeBehavior As GridResizeBehavior

Property Value

One of the enumeration values that indicates which columns or rows are resized by this GridSplitter control. The default is BasedOnAlignment.

Examples

The following example shows how to set the ResizeBehavior property.

myGridSplitter.ResizeBehavior = GridResizeBehavior.CurrentAndNext;
myGridSplitter.ResizeBehavior = GridResizeBehavior.CurrentAndNext
<GridSplitter ResizeBehavior="CurrentAndNext" Width="5"
              Grid.Column="3"  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 ResizeBehaviorProperty
Metadata properties set to true None

Applies to