dock = AddIn.FromID<DockableWindow1>(ThisAddIn.IDs.DockableWindow1);
private void SetupDockableWindow() { if (m_dockableWindow == null) { IDockableWindowManager dockWindowManager = m_application as IDockableWindowManager; if (dockWindowManager != null) { UID windowID = new UIDClass(); windowID.Value = DockableWindowGuid; m_dockableWindow = dockWindowManager.GetDockableWindow(windowID); // here I get NULL returned } } }
public class DockableWindow1 : UserControl { ... /// <summary> /// Implementation class of the dockable window add-in. It is responsible for /// creating and disposing the user interface class of the dockable window. /// </summary> public class AddinImpl : ESRI.ArcGIS.Desktop.AddIns.DockableWindow { private DockableWindow1 _windowUI; ... internal DockableWindow1 UI { get { return _windowUI; } } } }
var winImpl = AddIn.FromID<DockableWindow1.AddinImpl>(ThisAddIn.IDs.DockableWindow1); DockableWindow1 dock = winImpl.UI;
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.