public void ReleaseMouseCapture(IElement element) { if (this.elementWithMouseCapture == element) { this.elementWithMouseCapture = null; } }