tags:

views:

644

answers:

2

Can't find anchor property in WPF, was it reconstructed to Horizontal and Vertical Alignments? Is it the same? I wanted to stretch my control in both sides (right and left), but it worked rather different than anchor

+1  A: 

You can do something like Anchor like this

<...HorizontalAlignment='Stretch' VerticalAlignment='Stretch' Margin='50,50,50,50'.../>
ArsenMkrt
+3  A: 

The Anchor and Dock properties of Windows Forms are replaced by appropriate layouting containers in WPF. Depending on what exactly you need you should be able to create your desired layout in WPF with the Grid or DockPanel containers.

Joey