Message 1 of 2
GetDockablePane throws exception when no document open
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
During startup I create the pane:
DockablePaneProviderData data = new DockablePaneProviderData(); Utils.mainPage = new MainPage(); data.FrameworkElement = Utils.mainPage; Utils.paneId = new DockablePaneId(new Guid(Utils.dockablePaneId)); application.RegisterDockablePane(Utils.paneId, " ", Utils.mainPage as IDockablePaneProvider);
GetDockablePane works fine when there is a document open. But when no document is open this line throws an exception "The requested dockable pane has not been created yet.\r\nParameter name: id"
DockablePane pane = application.GetDockablePane(Utils.paneId);
Is there any way to get the dockable pane to work with no document open? Is this a known limitation?