【发布时间】:2012-04-17 19:27:42
【问题描述】:
我有一个这样定义的 ViewModel:
public class LocationTreeViewModel<TTree> :
ObservableCollection<TTree>, INotifyPropertyChanged
TTree : TreeBase<TTree>
我想在 XAML 中 DataTemplate 的 DataType 属性中引用它。我该怎么做?
【问题讨论】:
-
试试 x:TypeArgument
标签: c# wpf xaml mvvm mvvm-light