WPF C# how to create THIS binding in code?

Posted by 0xDEAD BEEF on Stack Overflow See other posts from Stack Overflow or by 0xDEAD BEEF
Published on 2010-03-15T00:43:22Z Indexed on 2010/03/15 0:49 UTC
Read the original article Hit count: 356

Filed under:
|
|
|

I wonder, how to create this binding, since Line.X2 IS NOT dependency property! :(

<Line Y1="0" X1="0" Y2="0" Stroke="Blue" StrokeThickness="3" Margin="0 -2 0 -2" X2="{Binding Path=RenderSize.Width, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type StackPanel}}}"/>

© Stack Overflow or respective owner

Related posts about wpf

Related posts about binding