VB.NET中的可绑定LINQ(BLinq)

时间:2009-05-29 00:11:26

标签: wpf vb.net linq data-binding

我不能让Bindable LINQ在我的生活中使用VB.NET。如何显示.AsBindable扩展?

示例代码:

Class TestList : Inherits Bindable.Linq.Collection.BindableCollection(Of TestItem)
  'Some Helpers and stuff'
End Class

Class TestItem
  'Some Properties'
End Class

想象一下,我神奇地想出了一个装满物品的系列。我会尝试类似下面的内容

DataContext = From G In TheList.AsBindable Order By G.Name

但是我在.AsBindable上收到错误“AsBindable不是TestList的成员”

1 个答案:

答案 0 :(得分:1)

不要取笑我,但我所要做的就是导入Bindable.Linq