How can I set the text of a label

血红的双手。 提交于 2019-12-02 08:50:19

Change LabelCaptionDP to LabelCaptionProperty.

From Dependency Properties Overview:

The naming convention of the property and its backing DependencyProperty field is important. The name of the field is always the name of the property, with the suffix Property appended. For more information about this convention and the reasons for it, see Custom Dependency Properties.

Please read about Dependency Property Name Conventions in Custom Dependency Properties.

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