How to set size of floating document window?

Docking/MDI for WPF Forum

Posted 6 months ago by Yuki
Version: 23.1.4
Avatar

Hello,

I'd like to change size of floating document window.

I found Limiting Floating Window Initial Sizes in your document, but I want to change the size of opened floating window.

Would you please tell me how to do it?

Best regards,

Comments (1)

Answer - Posted 6 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

When opening, floating windows will try to match their size to the size of the document window currently in the layout, falling back to the DocumentWindow.ContainerDockedSize if it's not currently open in the layout.  If opened via code, the DocumentWindow.Float method has several overloads and some of them let you indicate a specific Size to use.

If you mean you want to set the size after the document window is already open and floating, you'd need to get the DocumentWindow's ancestor WPF Window (could probably call Window.GetWindow(documentWindow) to get the ancestor WPF Window if it's open) and adjust its size.


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.