Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DockPanel: Can you use proportional height settings on c
Message
De
07/07/2008 14:41:15
 
 
À
07/07/2008 14:15:19
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01329537
Message ID:
01329554
Vues:
19
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform