How can I set the text of a label

后端 未结 1 980
傲寒
傲寒 2021-01-27 17:11

I\'ve got a usercontrol that I want to put in a FixedDocument, but before I do that I need to change the text of a label. I think I need to use Dependency Properties.

H

相关标签:
1条回答
  • 2021-01-27 17:34

    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.

    0 讨论(0)
提交回复
热议问题