Adjusting WPF Layout Controls
-
Hi All, In a WPF UI Application, I have 4 controls and 3 radio buttons( say write, read and load). I have aligned them Properly too. 4 controls are : 1. Tabcontrol with listview in it 2. Stackpanel with checkboxes 3. Stackpanel(orientation - Horizantal) with textbox and browse button 4. A stackpanel with Textblock and Listview. My question is, for Load RadioButton, I should have all the 4 controls stacked vertically. (this is no issue, its done.. ) for Write button, the controls 2 and 3 should be invisible and the control 1 and 4 should fill tht area. ctrl ht 1 150 2 100 3 30 4 200 When i press write, the ctrl 2 n 3 shuld become invisible and the ctrl 1 height should be (150 + 75) and ctrl 4 should be (200 + 55).. which makes ctrl1 lower limit should move down to 75 pixels and ctrl 4 upper limit should be 55 pixels above.. please help me in doing this.. I am using XAML and C# for this WPF app thanks Ramm
-
Hi All, In a WPF UI Application, I have 4 controls and 3 radio buttons( say write, read and load). I have aligned them Properly too. 4 controls are : 1. Tabcontrol with listview in it 2. Stackpanel with checkboxes 3. Stackpanel(orientation - Horizantal) with textbox and browse button 4. A stackpanel with Textblock and Listview. My question is, for Load RadioButton, I should have all the 4 controls stacked vertically. (this is no issue, its done.. ) for Write button, the controls 2 and 3 should be invisible and the control 1 and 4 should fill tht area. ctrl ht 1 150 2 100 3 30 4 200 When i press write, the ctrl 2 n 3 shuld become invisible and the ctrl 1 height should be (150 + 75) and ctrl 4 should be (200 + 55).. which makes ctrl1 lower limit should move down to 75 pixels and ctrl 4 upper limit should be 55 pixels above.. please help me in doing this.. I am using XAML and C# for this WPF app thanks Ramm
If you want to change the heights, you probably need to do that manually. I would imagine if you had the pairs of controls inside a single control of the combined height, and had the control you don't hide set to fill the available area, then the other control would limit it, or not, depending on if it is collapsed or not. But as you want to hide a control that is 100 high and replace it with 75 pixels of space, you'll need to do something more direct and manual.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.