public ContextMenuCreator(MenuManager menuManager, FrameworkElement elem, Guid guid, IGuidObjectsCreator creator, IContextMenuInitializer initCtxMenu, Guid? ctxMenuGuid) { this.menuManager = menuManager; this.element = elem; this.guid = guid; this.creator = creator; this.initCtxMenu = initCtxMenu; this.ctxMenuGuid = ctxMenuGuid ?? new Guid(MenuConstants.CTX_MENU_GUID); elem.ContextMenu = new ContextMenu(); elem.ContextMenuOpening += FrameworkElement_ContextMenuOpening; }
MenuWpfFocusChecker(MenuManager menuManager) { this.menuManager = menuManager; }