/// <summary> /// Detaches the specified manipulator. /// </summary> /// <param name="manipulator">The manipulator.</param> /// <param name="correspondingView">The corresponding view.</param> /// <param name="context">The context.</param> protected override void Detach(SceneManipulator manipulator, ViewInformation correspondingView, PerSceneContext context) { manipulator.Remove(context.BackgroundPainter); manipulator.RemoveResource(context.BackgroundTextureKey); GraphicsHelper.SafeDispose(ref context.BrushResource); }