Nested WorkItem & WindowWorkspace

Topics: CAB & Smart Client Software Factory
Oct 27, 2005 at 2:34 PM
originally posted by: bswire1

I have a deck workspace in my shell form that is used to display a list of read-only Contact objects in a grid (think Outlook Contacts). When the user opens a Contact from the grid (by double-clicking a row etc.), I want to launch a non-modal window that allows the user to work with the editable version of this Contact (again, Like Outlook).

I've defined 2 work items: eg. ContactListWorkItem and ContactEditWorkItem. The ContactListWorkItem has a method that initiates a child ContactEditWorkItem.

My question: I would like the parent work item to tell the child work item that it is to run in a WindowWorkspace. If the child work item doesn't exist, create it, otherwise activate the existing one. What is the best way to run child work items in this scenario that need to run in a WindowWorkspace?