tabbed MDI WindowsFormsHost behavior

Docking/MDI for WPF Forum

Posted 12 years ago by Robert Wilkinson - President, Seaconis Inc.
Version: 11.2.0554
Avatar

I am using a tabbed MDI and one of the documents uses a WindowsFormsHost to enclose mapping control (ESRI).  I was having an issue wit hthe recreation of the mapcontrol when navigating away from the map document tab, and then back.  Microsoft states that the WFH will recreate child controls when the page uses Navigate().  Is this the case with the tabbedMDI?

Comments (1)

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

Hi Robert,

Our tabbed MDI works similarly to a standard WPF TabControl where the selected tab's content is presented in the client area of the tab control.  When that tab is not selected, it will remove the content from the visual tree.  We don't do anything fancy for WindowsFormsHost handling though in that sort of code, so what you see is perhaps just how WPF handles swapping in and out of WindowsFormsHost controls.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.