/// <summary> /// handle the mouse down so that the Prompt is disabled /// </summary> /// <param name="e">Event args</param> protected override void OnMouseDown(MouseButtonEventArgs e) { AdornerLayer layer = AdornerLayer.GetAdornerLayer(AdornedElement); if (layer != null) { layer.Remove(this); EnableDisableElement(AdornedElement, false); AdornedElement.Focus(); } base.OnMouseDown(e); }