Removing a View (From a common workspace )

Topics: CAB & Smart Client Software Factory
Jun 22, 2006 at 1:59 PM
originally posted by: vujjeni

I have a Parent WorkItem which creates a Child Work Item. The ChildWorkItem Loads up a myView in a common workspace registered by the Parent WorkItem (The workspace is a tab workspace).

The problem is I have having trouble closing myVaiew without calling this.Terminate() on the Child WorkItem. Is there a way, I can do this without removing the Child WorkItem?

I looked at Items.Remove() option in the Child WorkItem but I am not sure what to pass in as paramter to the Items.Remove(). I tried passing in the myView but it doesn't remove the view from the workspace.
Jun 24, 2006 at 10:37 AM
originally posted by: DLorenz

I would try calling Dispose() on the view. If that doesn't work, then I would do something like this:

(This is on the WorkItem)