依赖属性是如何实现的?
谁能解释一下依赖属性是如何实现的? 它只是在基类中声明的静态字典,并以给定实例的引用作为键吗?我在互联网上找不到任何关于此的资源...
非常感谢
Can anyone explain how is dependency property implemented? Is it just a static dictionary that is declared in base class with a reference of given instance as a key?I can't find any resources about this in internet...
Thanks a lot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我看到两个问题:
I see two questions:
...几年后。
并且已经有一个.NET 的源代码浏览器。 您可以在此处研究它的实现方式:DependencyProperty.cs
...a few years later.
and there is already a source code browser for .NET. You can study how it is implemented here: DependencyProperty.cs