小编Jer*_*nNL的帖子

如何在Silverlight中按名称获取DependencyProperty?

情况:我有一个字符串,表示Silverlight中TextBox的DependencyProperty的名称.例如:"TextProperty".我需要获得TextBox的实际TextProperty的引用,它是DependencyProperty.

问题:如果我得到的只是属性的名称,我如何获得对DependencyProperty(在C#中)的引用?

诸如DependencyPropertyDescriptor之类的东西在Silverlight中不可用.我似乎不得不求助于反思来获得参考.有什么建议?

c# silverlight dependency-properties

11
推荐指数
2
解决办法
7243
查看次数

标签 统计

c# ×1

dependency-properties ×1

silverlight ×1