Je ne connais que peu de choses sur le dock panel, voici le code utilisé :
<DockPanel LastChildFill="True" >
<StackPanel Orientation="Horizontal" DockPanel.Dock="Top" VerticalAlignment="Center" Margin="10" >
<StackPanel Orientation="Horizontal" DockPanel.Dock="Left" VerticalAlignment="Center" >
<TextBlock Height="24" Name="Welcome" Text="Welcome" FontSize="14" />
</StackPanel>
<StackPanel Orientation="Horizontal" DockPanel.Dock="Right" VerticalAlignment="Center" >
<TextBlock Height="24" Name="Welcomee" Text="Welcomee" FontSize="14" />
</StackPanel>
</StackPanel>
</DockPanel>
Le résultat est le suivant :
WelcomeWelcomee
Cependant, le code doit aboutir à quelque chose comme ceci :
Welcome Welcomee
Pourriez-vous donc me dire où j'ai mal compris le concept ?