Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My First WPF App
Message
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01460394
Message ID:
01460398
Vues:
62
>I'm following this tutorial: http://msdn.microsoft.com/en-us/library/bb546972(v=VS.100).aspx
>
>I added the 3 controls called for under "Adding Controls to the Layout".
>
>The XAML looks like this:
>
>
><Window x:Class="FolderExplorer.MainWindow"
>        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>        Title="Folder Explorer" Height="400" Width="400">
>    <Grid>
>        <Grid.RowDefinitions>
>            <RowDefinition Height="200*" />
>            <RowDefinition Height="200*" />
>        </Grid.RowDefinitions>
>        <Grid.ColumnDefinitions>
>            <ColumnDefinition Width="200*" />
>            <ColumnDefinition Width="200*" />
>        </Grid.ColumnDefinitions>
>        <TreeView Height="71" HorizontalAlignment="Left" Margin="34,33,0,0" Name="treeView1" VerticalAlignment="Top" Width="120" />
>        <ListView Grid.Column="1" Height="100" HorizontalAlignment="Left" Margin="43,24,0,0" Name="listView1" VerticalAlignment="Top" Width="120" />
>        <ListView Grid.Column="1" Grid.Row="1" Height="100" HorizontalAlignment="Left" Margin="22,22,0,0" Name="listView2" VerticalAlignment="Top" Width="120" />
>    </Grid>
></Window>
>
>
>This does not appear as though the 3 controls are inside the grid's Rows/Columns. Did I do this right?

Looks like they are to me, what are you seeing?

I've never seen this notation before Height="200*" I think it should be Height="200" or Height="*"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform