13,347
社区成员
发帖
与我相关
我的任务
分享
public partial class LabelText : UserControl
{
public static readonly DependencyProperty LabelTextProperty =
DependencyProperty.Register(
"LabelName", typeof(String),
typeof(LabelText), null
);
public String LabelName
{
get { return (String)GetValue(LabelTextProperty); }
set { SetValue(LabelTextProperty, value); }
}
public LabelText()
{
InitializeComponent();
//this.LabelName始终为NULL
}
}