How to Resize WPF Grid Rows with a GridSplitter?

The following code snippet adds a Grid splitter to a Grid that you can use to resize a Grid row.

<Grid Name="DynamicGrid" Width="466" Background="LightSteelBlue" ShowGridLines="True"

          Canvas.Top="119" Canvas.Left="8" Height="200">


            <ColumnDefinition />

            <ColumnDefinition />

            <ColumnDefinition />



            <RowDefinition Height="50*" />

                <RowDefinition Height="Auto" />

                <RowDefinition Height="50*" />
















Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now