Dependent properties

让人想犯罪 __ 提交于 2019-12-25 09:36:41

问题


I am new to WPF.. Can anyone tell.. What exactly the depentent properties means?..

How it differ from normal properties??? and can i edit the design page in asp 3.5 while am i running the application, because the same is possible in asp 2.0.


回答1:


You'd use a DependencyProperty when you want to support the setting of the property from XAML code (rather than just procedurally)




回答2:


Dependency properties depend on multiple providers for determining its value at any one point. These providers could be constantly changing its value. Dependency properties also support change notiication (as do standard properties if you implement the correct interfaces, dependency properties just make that so much easier, as they can be added with simple XAML code).



来源:https://stackoverflow.com/questions/2508085/dependent-properties

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!