예제 #1
0
 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;
 }
예제 #2
0
 MenuWpfFocusChecker(MenuManager menuManager)
 {
     this.menuManager = menuManager;
 }