Custom Arrange / Cascade / Tile Method

Docking/MDI for WPF Forum

Posted 12 years ago by CodyVanZant
Version: 12.1.0560
Avatar

I'm using the StandardMdiHost and I'd like to add a TileAlongRight method, that Tiles the windows down the right side of the Workspace. I'd also like to be able to customize the creation behavior so that I can create and use a Property to AutoTileAlongRight.

I figure I can inherit from StandardMdiHost or DockSite, and override certain things, but as to where to look for the list of windows / documents, and how to calculate and specify the desired location, I don't know.

Where should I look?

Comments (1)

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

Hi Cody,

Our methods iterate over the Items collection to get the docking windows.  Then we set bounds like:

StandardMdiHost.SetStandardMdiLeft(document, bounds.Left);
StandardMdiHost.SetStandardMdiTop(document, bounds.Top);
StandardMdiHost.SetStandardMdiWidth(document, bounds.Width);
StandardMdiHost.SetStandardMdiHeight(document, bounds.Height);


Actipro Software Support

The latest build of this product (v24.1.1) 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.