xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="GridSplitter Example">
Row 0 Col 0
Row 1 Col 0
Row 2 Col 1
Row 0 Col 1
Row 1 Col 1
Row 2 Col 1
Row 0 Col 2
Row 1 Col 2
Row 2 Col 2
Property Settings
ResizeDirection
Auto (default)
Columns
Rows
//File:Window.xaml.vb
Imports System
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Data
Imports System.Windows.Documents
Imports System.Windows.Media
Imports System.Windows.Navigation
Imports System.Windows.Shapes
Namespace GridSplitter_Example
Public Partial Class Window1
Inherits Window
Public Sub New()
InitializeComponent()
End Sub
Private Sub ResizeDirectionChanged(sender As Object, e As RoutedEventArgs)
If CType(ResizeDirectionAuto.IsChecked, [Boolean]) Then
myGridSplitter.ResizeDirection = GridResizeDirection.Auto
ElseIf CType(ResizeDirectionCols.IsChecked, [Boolean]) Then
myGridSplitter.ResizeDirection = GridResizeDirection.Columns
ElseIf CType(ResizeDirectionRows.IsChecked, [Boolean]) Then
myGridSplitter.ResizeDirection = GridResizeDirection.Rows
End If
End Sub
End Class
End Namespace