如何从我的视图模型中将Radtile视图绑定到可观察集合中的显示对象 [英] How Can I Bind In Radtileview To Dispaly Objects In An Observable Collection From My View Model
问题描述
Helo
我有一个Radtileview,在tilevie中,我想在我的视图模型中显示来自可观察集合的图像。当我按如下方式绑定拼贴视图时
Helo
I have a Radtileview and inside the tilevie I would like to display images from an observable collection in my viewmodel.When I bind the tile view as follows
<telerik:RadTileView MinimizedItemsPosition="Right" MaxColumns="4" MaxRows="2" MaximizeMode="ZeroOrOne" DataContext="{StaticResource AlbumViewModel}"
ItemsSource="{Binding ALBUMPAGE, Source={StaticResource AlbumViewModel}}" >
然后在瓷砖视图中我有要显示的图像
图像没有显示在tileview上显示数据模型的名称。
我已将tile视图绑定到我的viewmodel但是什么都没有显示我可能会遗漏哪些点?我的viewmodel中有一个可观察的集合,其中包含images.Thanks
Then inside the tile view I have the image to be displayed
The image is not being displayed bt the tileview dispaly the name of the data model.
I have bound the tile view to my viewmodel but nothing is displaying where might i be missing the point?I have an observable collection in my viewmodel which has the images.Thanks
推荐答案
您好,一些有用的链接供您使用:
Model-View-ViewModel(MVVM)说明 [ ^ ]
模型 - 视图 - 视图模型设计模式(也适用于Silverlight) [ ^ ]
您是否实施了NotifyPr? opertyChanged?
祝你好运。
Hi, some helpful links for you:
Model-View-ViewModel (MVVM) Explained[^]
The Model-View-ViewModel Design Pattern (applies to Silverlight too)[^]
Did you implement NotifyPropertyChanged?
Best regards.
这篇关于如何从我的视图模型中将Radtile视图绑定到可观察集合中的显示对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!