2009-04-20 18 views

Répondre

5

Vous pouvez le faire de cette façon, mais un coup d'oeil à ce .. Attached Property

<Grid Background="Yellow"> 
    <Rectangle Fill="Red" Margin="20,10,0,0" Width="50" Height="30" 
    HorizontalAlignment="Left" VerticalAlignment="Top" /> 
    <Rectangle Stroke="Green" Margin="30,15,0,0" Width="20" Height="30" 
    HorizontalAlignment="Left" VerticalAlignment="Top" /> 
</Grid> 

Vous pouvez utiliser la propriété de la marge pour simuler le positionnement absolu.

Je ne sais pas si cela pourrait vous aider, mais en tout cas une lecture intéressante.

+0

Cela a fonctionné parfaitement, merci :) – Trap

Questions connexes