posts - 250,  comments - 58,  trackbacks - 5053

I'm working on my first WPF app and I had to figure out how to do the equivalent of anchoring from winforms in XAML.  It turned out to be really easy. Within the control you want to anchor, set HorizontalAlignment=”Stretch”

Something like this:

<Border HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="200,0,10,0" BorderBrush="#858585" MinWidth="470" BorderThickness="2" Height="145" >

posted on Wednesday, March 07, 2007 3:06 PM
Post a new comment about this topic
Title  
Name  
Url

Comments   

Enter the code you see: