OnMouseDown() protected method

protected OnMouseDown ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
return void
Ejemplo n.º 1
0
 protected virtual void OnMouseDown(UIMouseEventArgs e)
 {
     //if (_evhMouseDown != null)
     //{
     //    _evhMouseDown(e);
     //}
     if (!e.CancelBubbling)
     {
         DomElement parentAsDomElem = this.ParentNode as DomElement;
         if (parentAsDomElem != null)
         {
             //recursive to its parent
             parentAsDomElem.OnMouseDown(e);
             //when stop the cancel bubbline
             //e.CancelBubbling = true;
         }
     }
 }