Create WorkspaceData runtime

Oct 18, 2011 at 5:09 PM

Hi,

In my project i need create WorkspaceData  runtime.

I have list of testResult and when user choose testResult from collection i create preview

TestResultDetailWorkspaceData = new WorkspaceData(null, "TestResultDetailView", ViewMode.PreviewMode, "", false);

Mediator.Instance.NotifyColleagues<TestResultModel>("TestResultSelectedMessage", CurrentTestResult);

on view

<Expander Header="Details">

<ContentControl  Content="{Binding TestResultDetailWorkspaceData}"/>

</Expander>

All works fine, but

when expand Expander first time - there is no data. And Mediator message doesnt work first time.

How i can resolve this problem?

Thanks.

 

Coordinator
Oct 19, 2011 at 7:55 AM

Too be honest this sounds quite specific to your setup, and I cant really help everyone by offering to debug there code, you will have to step through it, sorry to say. You can always include the cinch source projects or the PDB debug symbols so you can step into the CInch code to see whats going on.

 

As no one else is complaining though, you would have to do this, I simply do not have time. Sorry.