Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Difference between DockableControlPane.Close and MdiTab.Close
posted

This is most likely my misunderstanding of how Infragistics works, but I have the following scenario.

 

WinForm containing a dock manager and a mdi manager. This allows me to either dock or "fill" my panes in the form.

One pane contains a WebBrowserControl, inside which I am rendering a local web page (Bing maps.)

If the pane is a pane and docked anywhere, calling Close on it works without issue - the pane closes and can then be opened again with Show.

If the pane is a tab (Dockable false), calling Close on it is appearing to cause the WebBrowserControl to unload.

 

I have attached a sample of this behaviour, there is a debugger line in the javascript to show when the web page is being unloaded.

To use the sample

 

  • Build and run
  • Press Add Pin - Map is shown
  • Press Close - Map is hidden
  • Press Open - Map is shown

 

This all works fine to this point, the pin is still there and no errors are thrown

  • Right click the maps title bar, uncheck Dockable - Map fills available area
  • Press Close - Debugger step is thrown from the javascript file showing unload has been called

 

This is not the desired, nor expected behaviour - any advice on how to make this function as I was expecting would be much appreciated.

Thanks in advance!

(Edit) : I am away on annual leave until Nov 1st

WindowsFormsApplication5.zip
Parents
No Data
Reply
  • 165
    posted

    One other thought so as not to confuse the situation, the same behaviour is shown when a different control is placed in the pane (for example a MapPoint map object.)

Children