/// <summary> /// Internal method to hide the adorner. /// </summary> private void HideAdornerInternal() { if (this.adornerLayer == null || this.adorner == null) { // Not already adorned. return; } // // Stop the timer that might be about to fade out the adorner. // closeAdornerTimer.Stop(); this.adornerLayer.Remove(this.adorner); this.adorner.DisconnectChild(); this.adorner = null; this.adornerLayer = null; // // Ensure that the state of the adorned control reflects that // the the adorner is no longer. // this.adornerShowState = AdornerShowState.Hidden; }