Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generics in XAML

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>.

like image 265
Cartesius00 Avatar asked Nov 14 '22 22:11

Cartesius00


1 Answers

May be use DataTemplateSelector.

like image 126
AQL.exe Avatar answered Dec 15 '22 13:12

AQL.exe