Tao Liu

hi.. Group,

Is there an event define in UserControl which can be fired when the control is moved

I found there is an event MarginChange in Control class, but not in UserControl class.

Thanks.



Re: Windows Presentation Foundation (WPF) Event when a control moves

Rob Relyea

Is the control trying to understand when it is moved, or is the page author trying to understand when that happens

Thx, Rob





Re: Windows Presentation Foundation (WPF) Event when a control moves

Tao Liu

HI.. Rob,

The control needs to know when it is being moved.

Thanks.





Re: Windows Presentation Foundation (WPF) Event when a control moves

Rob Relyea

Which types of moving are you trying to detect

By the user: Scrolling of the page

By parent elements: layout changes up the tree

Other

Please describe more about what you are trying to do and why, so we have the right context.

Thanks, Rob