Bonjour,
J'ai un petit problème avec les Grid.RowDefinitions. Dans le code ci-dessous j'imbrique des Grid dans la principale j'y met 2 lignes, sur la 1er ligne un petit text et dans la deuxième plusieurs autres lignes dans lesquelles j'y met un text.
Le problème c'est que dans dans la 2eme ligne de la Grid principale ou je redéfinie d'autres lignes tous mes textblock apparaissent dans la 1er ligne. Need help
dev sous VS2013 application wp8.1 silverlight
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="70"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid x:Name="BarreMenu" Grid.Row="0" Background="#FF3C8BCE"> <TextBlock Text="Détail" Style="{StaticResource TitrePage}"/> </Grid> <Grid x:Name="ContentPanel" Grid.Row="1" > <Grid.RowDefinitions> <RowDefinition Height="2*"/> <RowDefinition Height="*"/> <RowDefinition Height="3*"/> <RowDefinition Height="2*"/> <RowDefinition Height="6*"/> </Grid.RowDefinitions> <Border BorderThickness="0,0,1,0" BorderBrush="Gray"> <Grid Grid.Row="0"> <TextBlock x:Name="Nomclient" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Client" Width="436" Style="{StaticResource TextBlock}" /> </Grid> </Border> <Border BorderThickness="0,0,1,0" BorderBrush="Gray"> <Grid Grid.Row="1"> <TextBlock x:Name="Dossier" HorizontalAlignment="Left" TextWrapping="Wrap" Text="TextBlock" Width="436" Style="{StaticResource TextBlock}" /> </Grid> </Border>
Edit : Mon erreur vient des Border mais du coup je ne sais pas comment réaliser des border sur ma grid ??
Partager