1 pièce(s) jointe(s)
Problème de background (Débutant)
Bonjour (ou bonsoir plutôt ;)),
J'ai commencé à faire du silverlight aujourd'hui et vraiment ca a l'air top.
Mais la je reste bloqué sur un p'tit souci qui a mon avis.. vas en faire rigoler plus d'un :)
Mais j'trouve pas :(
Je veux en faite un haut, un corps et un pied de page.
J'arrive à avoir ca mais le probleme comme j'veux que 550 de width et que j'utilise le horizontalAlignement tout autour c'est blanc :( alors que j'voudrais que ca soit noir :(
J'vous montre un p'tit screen et mon code, si quelqu'un pouvait me donner un coup de main ca serait sympa :$
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <UserControl Background="Black" x:Class="Test.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
<Grid HorizontalAlignment="Center" x:Name="LayoutRoot" Background="Black">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="550"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="400"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<Canvas x:Name="Haut" Background="Black" Grid.Column="0" Grid.Row="0">
</Canvas>
<Canvas x:Name="Corps" Background="LightBlue" Grid.Column="0" Grid.Row="1">
</Canvas>
<Canvas x:Name="Bas" Background="Black" Grid.Column="0" Grid.Row="2">
</Canvas>
</Grid>
</UserControl> |
Merci d'avance à vous tous et bonne soirée :)