WindowWorkspace - Bug?

Feb 24, 2008 at 11:09 AM
Edited Feb 24, 2008 at 2:06 PM
Scenario:
I have a workitem with a smartpart and a WindowWorkspace as Items.
As a respond to a command I'm showing the part in the workspace (using the same workspace and part instances over and over).
I've set the WindowSmartPartInfo to be modal so I can't have two of those happening in the same time.

This works only the first time and crashes on the second. The reason is that the part was not removed (disconnected) from the window after the window was closed on the first time.
I can work around it: (part.Parent as Window).Content=null But it seems that should have been in the library.


Acer

Just saw this is the same issue as described here:
http://www.codeplex.com/scsfcontrib/Thread/View.aspx?ThreadId=22224
Coordinator
Feb 25, 2008 at 6:19 PM
Thanks, this is fixed. This problem was noted in the WPF/CAB Shell source code, too, so I've fixed things there as well.

Note that this is a potentially breaking change. Dialog results are now conveyed via the WindowSmartPartInfo. If you show a dialog window, the WindowSmartPartInfo.DialogResult property will be set after.

Regards,
Kent