DataBinding到现有集合 [英] DataBinding to an existing collection

查看:64
本文介绍了DataBinding到现有集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实例化了一个集合(而不是XAML),我试图找出如何将listview(和gridview)数据绑定到这个集合。

I have a collection already instantiated (and not by XAML), I try to find out how to databind a listview (and gridview) to this collection.

我知道我可以混合使用XAML({Binding etc})和代码(.DataContext = myCollection等),但是如何通过使用Blend来实现呢?

I know I can use a mix of XAML ({Binding etc} )and code (.DataContext = myCollection etc.), but how can this be achieved by using Blend ?

似乎Blend是我在Blend中设置绑定时急于实例化我的类,我误解了什么?

It seems like Blend is eager to instantiate my class when I set up binding in Blend, something I misunderstand ?

推荐答案

请浏览Microsoft的优秀表达培训视频> http://expression.microsoft.com/en-au/cc136535.aspx
< br>我希望这会有所帮助:)
Please go through the Excellent Expression Training Videos from Microsoft
http://expression.microsoft.com/en-au/cc136535.aspx

I hope this will help :)


这篇关于DataBinding到现有集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆