I am using the ChildWindow (Silverlight) which also contains some expander controls. In one case, when the expander control expands, the bottom of the child window expands down out the screen on the bottom, but still leaves room on the top.
How can I re-position a child window in order to center it in the screen, as if I just opened the childwindow? (That would be easy, but I don't think doable)
(manual intervention) I've gone through RenderTransform of the the ContentRoot, and I have six transforms in that collection, 2 of which are TranslateTransforms. If I update the X/Y properties of the first one (don't know which of the two I should be changing) AND update the RenderTransform property with the entire TransformGroup, I have success in moving the ChildWindow around the screen - but it's not behaving as I am expecting.
I also dont' know why the ChildWindow_SizeChanged event does not fire, when the Expander control expands. The window does change in size, so why does it not fire?
Ok - too many questions, just need the first one answered, the rest are to fill in my knowledge of how WPF/Silverlight is working...
Regards, Richard