Adding WorkspaceItems during runtime

Sep 1, 2009 at 2:04 AM

hi... I am trying to use WorkspaceItems and WorkspaceItemsControl by adding WorkspaceItems during runtime. Works fine but if I add WorkspaceItems after an event other than loading of the window or initializing of the window the WorkspaceItems couldnt be moved around or minimized or anything. It just sits there on the workspace. The toggle button does appear whenever I hover a mouse over a WorkspaceItem but that's just about it. It cannot be dragged or minimized or anything. Is this a bug or am I missing something here?

thanks.

Sep 1, 2009 at 5:45 AM

i've figured something to get it to work, and that is to instantiate WorkspaceItemsControl each time i need to add a WorkspaceItem into the host rather than put in aWorkspaceItemsControl in design time. I don't know if this is a bug or a flaw or it is simply designed to handle new item controls in this way.