/// <summary> /// Notifies the client that its Control has been deactivated. Deactivation occurs when /// another Control or "host" Control gets focus.</summary> /// <param name="control">Client Control that was deactivated</param> /// <remarks>This method is only called by IControlHostService if the Control was previously /// registered for this IControlHostClient.</remarks> public virtual void Deactivate(Control control) { if (!IsUs(control)) { return; } ContextRegistry.RemoveContext(this); }