Exemplo n.º 1
0
 /// <summary>
 /// Obsolete API will be removed soon
 /// </summary>
 /// <param name="evt">The DomEvent that triggered the launch(usually a mouse click)</param>
 internal bool LaunchContextMenu(HtmlElement targetElement, HtmlEvent evt)
 {
     _targetElement  = targetElement;
     _launchPosition = GetMenuPosition(evt);
     LaunchMenu(null);
     Menu.FocusOnFirstItem(evt);
     return(true);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Launch this MenuLauncher's Menu at the given position
        /// </summary>
        public bool LaunchContextMenuAt(HtmlElement targetElement, int x, int y)
        {
            this._x        = x;
            this._y        = y;
            _targetElement = targetElement;

            LaunchMenu(null);
            Menu.FocusOnFirstItem(null);
            return(true);
        }