Alter window size after call to MoveToNewHorizontalContainer

Docking/MDI for WPF Forum

Posted 4 years ago by Jim Carole
Version: 14.2.0611
Avatar

I have a tabbed MDI app and want its initial apperance to be horizontally split with the lower region having a height of 100. I can't do this in XAML because I have a menu pick that restores this default arrangement, so it has to be done programmatically. After I use MoveToNewHorizontalContainer to establish the split, how do I set the height of the lower window to 100?

[Modified 4 years ago]

Comments (4)

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Jim,

Take a look at the Programmatic Sizing QuickStart.  By walking up the tree and looking at the SplitContainer, you can call its ResizeSlots method to adjust the size of the tabbed MDI containers.  The "Programmatic Layout" topic in the documentation also covers this area a bit.


Actipro Software Support

Posted 4 years ago by Jim Carole
Avatar

I typed "Programmatic Sizing QuickStart" in the Actipro WPF Studio Documentation Search tab but no hits. Where is it?

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Jim,

The "Programmatic Sizing" QuickStart is a sample whose full source is in the Docking samples portion of our Sample Browser project.


Actipro Software Support

Posted 4 years ago by Jim Carole
Avatar

Got it...thanks!

The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.