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
DragIncrement
1 (default)
20
50
//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 DragIncrementChanged(sender As Object, e As RoutedEventArgs)
If CType(DragIncrementAuto.IsChecked, [Boolean]) Then
myGridSplitter.DragIncrement = 1
ElseIf CType(DragIncrementCols.IsChecked, [Boolean]) Then
myGridSplitter.DragIncrement = 20
ElseIf CType(DragIncrementRows.IsChecked, [Boolean]) Then
myGridSplitter.DragIncrement = 50
End If
End Sub
End Class
End Namespace