Resize DocumentWindow Event

Docking/MDI for WPF Forum

Posted 15 years ago by longe
Version: 4.5.0487
Avatar
Hi,
I need to ask how to handle resize event on documentWindow.
Which event i can override for that?

The case is:
If you dock one documentWindow below another,you could resize area available for documentWindow on top by dragging on its bottom border.
It will adjust the area available for the one docked below too.

what is that event?
i need to get that event to handle resizing of childs inside documentWindows.

Thanks

Comments (4)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Our framework doesn't have that event built-in, however all you'd have to do is attach to the resize event of the root control in your document window's content. So say the root content control of your DocumentWindow is a Border, that has other controls in it. You'd attach to the resize event of the Border. Hope this helps.


Actipro Software Support

Posted 15 years ago by longe
Avatar
ok,still no luck,my documentWindow has scrollviewer as its root child.

i try to check which event inside scrollviewer is being fired when i am resizing the documentWindow.
I have tried ScrollViewer.SizeChanged,ScrollViewer.MouseLeftButtonDown,ScrollViewer.DragEnter(by popping messagebox to see if that's the event),but cannot find which event that is fired.

Can you help me with which event is fired on the child if the documentWindow is resized?
Because the scrollViewer is resized,but i don't know which event is fired.

i need to know that to be able to handle the resize.
Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
When I tested just now I put ScrollViewers as the root child of some DocumentWindows and attached to their SizeChanged events. It worked great.


Actipro Software Support

Posted 15 years ago by longe
Avatar
Sorry,My Mistake.
I add the event handler on different constructor that was not called at all.:)

It's just as you said.SizeChanged on rootContent.

Thanks for the great help.
The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.