I'll take it that there's no easy way of doing it in XAML, so I have resorted to code-behind. The way I've done it is thus, in the XAML Grid> Height, GridUnitType. Star); } private void Bar_SizeChanged(object sender, SizeChangedEventArgs e) { BarRow.
Height = new GridLength(e.NewSize. Height, GridUnitType. Star); } You could also do it with bindings and a ValueConverter.
I'll take it that there's no easy way of doing it in XAML, so I have resorted to code-behind. The way I've done it is thus, in the XAML; In the code-behind; private void Foo_SizeChanged(object sender, SizeChangedEventArgs e) { FooRow. Height = new GridLength(e.NewSize.
Height, GridUnitType. Star); } private void Bar_SizeChanged(object sender, SizeChangedEventArgs e) { BarRow. Height = new GridLength(e.NewSize.
Height, GridUnitType. Star); } You could also do it with bindings and a ValueConverter.
I have two user controls arranged vertically in a grid, both of which can expand to be taller than the grid can accommodate. I've put them in each in a scrollviewer which functionally works. What I want though is to give them them space in proportion to the amount that they want at run time.
So if there's 500 height available, the upper control wants 400 and the lower 600, the upper control would get 200 and the bottom 300. I have no idea at design time how much space each will want in proportion to the other, so using 1*, 2* etc. for row height won't work for me. I can hand-code run-time proportional sizing, but am I missing a simple trick in XAML that would get me what I want?
Context is as follows (trimmed for brevity)...
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.