In my main window, a child window appeared on top to look like part of the main one. I would like to move the child window in sync with the main one, but I'm not sure how to do this.
My main window has my own title bar, the MouseLeftButtonDown event calls this function:
public void DragWindow(object sender, MouseButtonEventArgs args) { DragMove(); UpdateChildWindowPosition(); }
This results in DragMove () being executed in the main window only moving the main window when I drag the title bar. UpdateChildWindowPosition () is not executed until I release the mouse in which it reads some coordinates of the element and sets the position of the child window - you see the binding of the child window to a place that is undesirable.
How can I synchronize a child window with the main window?
Jippers
source share