I have two WPF borders, each of which contains some content, which I wish to display side-by-side, and I would like the following height rules to apply:
(1) The height of the control inside the left-hand border will determine the height of both controls.
(2) If the height of the control inside the left-hand border is less than 200, then both borders should have a height of 200 (this is a minimum height).
(3) If the height of the control inside the left-hand border is greater than 200, then both borders should be set to the height the left-hand border would take if the right-hand border did not exist. The right-hand border will then stretch or be squashed to match what the left-hand border desires.
Is this possible in XAML, or do I have to use some code? And if so, what code would work?
Thanks.
You should bind your right hand border’s height to the left one’s
ActualHeightand set both borders to have aMinHeightof 200