Hi I'm using mvvm and have a viewmodel:
public class GridViewModel<T> {...}
I've a datetemplate
<DataTemplate DataType="{x:Type vm:GridViewModel}">
<vw:GridView />
</DataTemplate>
Off course, this gives an error since it should be generic.
I've put your class in the same namespace (vm).
I tried to use
<DataTemplate DataType="{vm:Type vm:GridViewModel{Entities.EntityBase}}">
<vw:GridView />
</DataTemplate>
but it still states it cannot find the object.
How should I write this?
I also tried with
<DataTemplate DataType="{vm:Type TypeName=om.EntityBase}">
<vw:GridView />
</DataTemplate>
Then I get the error "A key for a dictionary cannot be of type 'ViewModel.TypeExtension'. Only String, TypeExtension, and StaticExtension are supported"
tx
Geoffrey