GridSplitter.ResizeBehavior Property
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.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應