Exemplo n.º 1
0
		public ContextMenuProvider(MenuService menuService, FrameworkElement elem, Guid guid, IGuidObjectsProvider provider, IContextMenuInitializer initCtxMenu, Guid? ctxMenuGuid) {
			this.menuService = menuService;
			element = elem;
			this.guid = guid;
			this.provider = provider;
			this.initCtxMenu = initCtxMenu;
			this.ctxMenuGuid = ctxMenuGuid ?? new Guid(MenuConstants.CTX_MENU_GUID);
			elem.ContextMenu = new ContextMenu();
			elem.ContextMenuOpening += FrameworkElement_ContextMenuOpening;
		}
Exemplo n.º 2
0
 MenuWpfFocusChecker(MenuService menuService) => this.menuService = menuService;
Exemplo n.º 3
0
		MenuWpfFocusChecker(MenuService menuService) {
			this.menuService = menuService;
		}