Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DockPanel: Can you use proportional height settings on c
Message
From
07/07/2008 14:41:15
 
 
To
07/07/2008 14:15:19
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Miscellaneous
Thread ID:
01329537
Message ID:
01329554
Views:
18
Well.. I found that I was able to accomplish what I wanted with a Grid. I had started with a Grid before I tried DockPanel, but couldn't get it to work right. It tried again and got it. Kot sure what I missed the first time. Probably did too much hard-coding! <g>

I find it hard to choose the right layout structure. It can get quite complex: StackPanels in Grids in DockPanels in Grids can be a little hard to keep track of!
        <Grid Grid.Row="1" Grid.Column="1" Margin="0,0,5,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="3*"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <...>
         </Grid>
>How can I propertionally set the height of the child elements inside of my DockPanel?
>
>I want it so that when I re-size my form, it will proportionally make the (3) ListViews in the dockpanel taller or shorter as necessary.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform