protected virtual void OnDetach() { if (_action != null) { ((IAttachedObject)_action).Detach(); } _actions.AssociatedObject = null; }