Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to control the position of a GridSplitter programmatically?

$
0
0

I have looked all over the Internet, but have not found a good answer.

My application has 2 panels, bound to the same data.

    •A DataGrid on top

    •A TreeList on the bottom.

There is a GridSplitter between them. Some of my users will need access to the tree exclusively, they don't even need to know that the DataGrid is actually hidden there. Other users will only have to deal with the DataGrid; for them, the tree view will be a rare option.

I will need to see the two views, half-and-half.

Therefore, I need a way to specify whether the Splitter should be 0%, 50% or 100% lifted. This is easier said than done.

TIA





Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>