How to: Create a GridSplitter, that customizes the size of a DockPanel (C#, WPF)
This is my GridSplitter
code, but unfortunately it is not working: I am not allowed to change the size of my grid
. I can see the GridSplitter
, but I cannot use it.
<DockPanel DockPanel.Dock="Left" Name="dockPanel_1" Width="200">
<StackPanel />
<DockPanel />
</DockPanel>
<Grid>
<GridSplitter ShowsPreview="True" Width="5" HorizontalAlignment="Right" VerticalAlignment="Stretch" />
</Grid>
<DockPanel DockPanel.Dock="Right" Name="dockPanel_2">
<StackPanel />
<DockPanel />
</DockPanel>
PS: If you know how to save the changed size, so that its to the same size when restarting the application, just add to your post.
Thanks in advance.