DataTemplate Frustration

Sep 11, 2012 at 8:05 PM

I'm basing alot of my code on the MVVM project example but have an issue. 

I'm having a problem getting the following code to work properly.

                        <DataTemplate DataType="{x:TypeExtension w:WorkspaceViewModelBase}">


WorkspaceViewModelBase inherits from DataTemplate, and an observable collection of them exist and are bound to the DocumentSource property of the dockingManager.   I need to show the related view and viewmodel of the workspace, but it always opens an empty tab (except it has the correct displayname in the actual tab title).


What am I doing wrong?   I know it's probably something simple, but It's just eluding me right now.  :(





Sep 11, 2012 at 9:04 PM

Ok, so my frustration is I can't find a way to dynamically supply a datatemplate to the pane.