I am experiencing weird behaviour whilst using the WPF GridSplitter.
I have the appropriate HorizontalAlignment properties set to stretch and when I resize them the GridSplitter jumps around, sometimes going back to their original positions or just jumping around as I drag them.....
Does anyone else seen or know what may be causing this?
Thanks
Here is the XAML
<GridSplitter x:Name="grdTreeSplitter" Grid.Row ="1"
BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"
BorderThickness="1"
HorizontalAlignment="Stretch" Panel.ZIndex="0"
ResizeBehavior="PreviousAndNext" ResizeDirection="Rows"
SnapsToDevicePixels="False" ShowsPreview="False" UseLayoutRounding="False"
DragIncrement="1"
DragDelta="grdSideExplorerSplitter_DragDelta">
<GridSplitter.Visibility>
<MultiBinding
......
</MultiBinding>
</GridSplitter.Visibility>
</GridSplitter>
I had the same problem and found the same code works fine in Silverlight while it is broken in WPF, so I think it might be a problem with WPF. My fix was to roll out my own version of the GridSplitter, which is too big to put here, so you can see it on my blog.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With