I'm new to Silverlight programming, and the DependencyProperty
is still relatively new to me, which causes the following issue:
I'd like to attach to an event, when Canvas.LeftProperty
of Canvas.TopProperty
changes for an UIElement
(a UserControl
in my case).
For example, I'm able to do the following:
source.SizeChanged += delegate
{
target.Width = source.Width;
target.Height = source.Height;
};
But I was unable to find a similar event for location. Is this even possible?