Use XAML data binding to bind each end of a Line to the center of two shapes on a Canvas
Posted
by spoon16
on Stack Overflow
See other posts from Stack Overflow
or by spoon16
Published on 2010-03-29T07:26:05Z
Indexed on
2010/03/29
7:33 UTC
Read the original article
Hit count: 408
I have a Canvas in Silverlight with two ellipses on it. The ellipses are animated via events in the code behind. I have added a line two the canvas and I would like each end of the line to be bound to the center of each ellipse. Is it possible to do this in XAML databinding or will I have to manually move the end of the line around in code?
© Stack Overflow or respective owner