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

How to move a grid spliter from code

$
0
0

Dear all,

I have a grid of 2 rows which are separated by a grid spliter.
The Height of row 1 container is fully control by the Height of row 0  , so based on that contro, inside row0 and 1 does not have Height property set.

What I need to do is to chnage by code the Height of the row0 control by moving the gridspliter, until the inside control gets a predefined ActualHeight value.

For instance initially my row0 control have an Actual heigt of 200px, I then need to move grid splitter to get control ActualHeight to 250. Then when I complete relquires business rule at this size I need to set back initial position of GridSpliter to get control actual height back to 200px

How to change the position of gridspliter from code?

regards 


Viewing all articles
Browse latest Browse all 18858

Trending Articles