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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기