WindowWorksplace & MdiWorkspace

Topics: CAB & Smart Client Software Factory
Dec 28, 2005 at 4:15 AM
originally posted by: Marcondes

We are trying to use Composite UI Application Block. We have an application that has a main form and a lot of other forms that are going to be opened from this main form. I believe there is a way to accomplish that by using WindowWorkspace or MdiWorkspace. Do you have any example of how to use these workspaces? thanks a lot..

Dec 28, 2005 at 7:04 AM
originally posted by: BradWilsonMSFT

The workspaces in CAB are designed to show controls rather than forms, so you're left with 2 choices. Either continue to use whatever form logic you are already using, or convert your forms into user controls and show them with a window workspace.
Dec 28, 2005 at 11:56 AM
originally posted by: Marcondes


how do I create and use a WindowWorkspace?

thank you
Dec 28, 2005 at 3:25 PM
originally posted by: BradWilsonMSFT

WindowWorkspace ws = myWorkItem.Items.AddNew<WindowWorkspace>("workspacename");

Each smart part (control) you should via the Show() method will create a new window: