惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V2EX - 技术
V2EX - 技术
P
Privacy International News Feed
Security Latest
Security Latest
H
Hacker News: Front Page
T
Tenable Blog
The Hacker News
The Hacker News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Security @ Cisco Blogs
Project Zero
Project Zero
O
OpenAI News
AI
AI
Spread Privacy
Spread Privacy
C
CERT Recently Published Vulnerability Notes
The Last Watchdog
The Last Watchdog
G
GRAHAM CLULEY
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Scott Helme
Scott Helme
Application and Cybersecurity Blog
Application and Cybersecurity Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
CXSECURITY Database RSS Feed - CXSecurity.com
NISL@THU
NISL@THU
A
Arctic Wolf
T
Threat Research - Cisco Blogs
PCI Perspectives
PCI Perspectives
N
News and Events Feed by Topic
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
Simon Willison's Weblog
Simon Willison's Weblog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
Google Online Security Blog
Google Online Security Blog
罗磊的独立博客
L
LINUX DO - 最新话题
U
Unit 42
S
Security Affairs
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
月光博客
月光博客
Engineering at Meta
Engineering at Meta
腾讯CDC
F
Full Disclosure
Cyberwarzone
Cyberwarzone
S
SegmentFault 最新的问题
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 司徒正美
The Cloudflare Blog

博客园 - 无之无

别了博客园! 即将没落的博客园?!!! SQL里ROWCOUNT的使用 阿里云的背后故事(希望别被关了) LINQ:是BUG还是~~~ 集合代理类的实现 WPF对绑定到数据的树初始化选择项 [请教]关于 .NET 应用的几个问题请教!!!( 如何解决 自定义控件 构造被设计器删除? 遭遇品牌电脑的尴尬 面对VS2005,我遇到了BUG? FOREACH的遍历 该死的微软,该死的文档,该死的ExecuteCommand Windows Form的初始化大小记录处理问题 怪异的Windows Form事件 MDI窗体关闭问题解决一例 .Net再发行包与强名称 托管与非托管的混合编程问题 关于WMI
SilverLight中的数据绑定
无之无 · 2010-05-06 · via 博客园 - 无之无

需要执行个数据绑定,结果遇到问题,绑定失败,经实验,结果如下:

1——
只能对属性操作(PROPERTY),不能对字段(FIELD)操作。

2——
目标类必须是PUBLIC的,目标属性也必须是PUBLIC的。
(这个问题很奇怪,不知道为什么,MS在SL中禁止通过REFLECTER机制来操纵PRIVATE的内容,而跨模块的时候,INTERNAL也不可以操作,只能操作PUBLIC的)

3——
不能使用匿名对象(这个问题其实第一和第二已经解释,匿名对象是私有类、内容是字段形式表示的)

只是感觉,MS这样做,让数据操作会很麻烦,匿名类的强力应用在SL中就此打个折扣,BS下!

不知道是否有其它的更好的解决方案。

附带说下:

1——

定数据的时候,只要设置对象的DataContext就能触发绑定事件

2——

除非单独设置子对象的DataContext,否则父对象的DataContext设置被子对象共享。