views:

42

answers:

0

Seen some questions on SO but none answers my question.

What I want to accomplish: I have a custom control (lets call it A) which moves around the canvas using a storyboard. And I want to bind another custom control's canvas (lets call it B) position onto the first control.

Using the TransformToVisual(Application.Current.RootVisual) I can get the actual position of control A, but I can't figure out how to get a binding to B's Canvas.Left and Canvas.Top on this.

Has anyone figured out how to accomplish this task? Or get me pointed into the right direction?