public bool CaptureMouse(IElement element) { if (this.elementWithMouseCapture == null) { this.elementWithMouseCapture = element; return true; } return false; }