Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Adjusting WPF Layout Controls

Adjusting WPF Layout Controls

Scheduled Pinned Locked Moved WPF
csharpwpfhelpdesignquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krishna Aditya
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • K Krishna Aditya

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups