Topics: CAB & Smart Client Software Factory
Oct 14, 2005 at 5:56 AM
originally posted by: cpiock

Hi one Question,
i'am using the Composite UI Application Block Tech Preview 1 why if i add a mdi workspace to my shell the parentWorkItem.Workspaces.Count in my initclass of my module is 0?
if i do the same thing with deckworkspace or tabbedworkspace it works fine.
what i do wrong?

addition: i have seen that with the windowsworkspace i have the same problem .. so something in my code is worng ... what a must du that the mdiworkspace works?.. any sample?
Oct 18, 2005 at 10:38 PM
originally posted by: cpiock

I have to do:

protected override void AfterShellCreated()
RootWorkItem.Workspaces.Add(new MdiWorkspace(this.Shell), "workspace");

because the ParentMDIForm i can't set it in the designer and the property has only a getter. So i add a new workspace and it works.

I don't know why but if i do this in the desginer code of my shell this.workspace = new Microsoft.Practices.CompositeUI.WinForms.MdiWorkspace(this); it doesn't work...