18
一个简单的一个;-)如何将d:DesignInstance设置为泛型?
我宣布:
xmlns:om="clr-namespace:System.Collections.ObjectModel;assembly=System"
我尝试设置一个通用的数据类型:
<DataGrid d:DataContext="{
d:DesignInstance Type=om:ObservableCollection<System:Int32>}" />
但是我收到一个错误:“无效的格式一个类型“。
有人有一个想法,我可以做到这一点?
5年后你好,还是不支持YET! :)对于像我这样的随机Google员工,有[标记扩展](http://stackoverflow.com/a/8235459/628532) – 2016-07-26 11:43:09