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. WCF and WF
  4. Problems setting Grid Height [modified]

Problems setting Grid Height [modified]

Scheduled Pinned Locked Moved WCF and WF
csshelpquestion
1 Posts 1 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.
  • M Offline
    M Offline
    mocasu
    wrote on last edited by
    #1

    Hi All, I have a grid defined as follows

    <Grid MaxHeight="768">
    <Grid.RowDefinitions>
    <RowDefinition Height="60"/>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="55"/>
    <RowDefinition Height="55"/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="90"/>
    <ColumnDefinition Width="*"/>
    <ColumnDefinition Width="*"/>
    <ColumnDefinition Width="90"/>
    </Grid.ColumnDefinitions>
    </Grid>

    However when populating this grid, the last rows are not visible since there is a lot of data to display. I know that the Auto means take as much space as you need but, isnt the MaxHeight property define for the grid taking into account? (Grid's maxheight is window height) I would expect the auto rows to take as much space as it remains available Since this was not working I tried to set the auto rowdefinition as follows:

    <RowDefinition Height="Auto" MaxHeight="250"/>

    I am guessing that the height preference will be, starting for higher preference: MinHeight>MaxHeight>Heigth This does not work either. Eventhough I have set up the MaxHeight for that row, it will take as much space as it needs to display it contents, hence other rows are not visible. Any help will be greatly appreciated. Thanks

    modified on Thursday, September 3, 2009 6:55 PM

    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