Reputation: 24414
is it possible to write something like this in XAML:
<DataTemplate DataType="{x:Type vm:EntityListViewModel<T>}">
BUT
I need to specify generics because the declaration is EntityListViewModel<T>
.
Upvotes: 5
Views: 944
Reputation: 6275
There are some support for generics in xaml 2009 http://blogs.windowsclient.net/rob_relyea/archive/2009/06/01/xaml-using-generic-types-in-xaml-2009.aspx
But im not sure if that works with datatemplate.
You could however experiment with setting the DataType property from code... i havet tried that though :)
Upvotes: 0