我有一个绑定到属性的文本框(CustomerId,数据类型为int)。这个文本框首先显示0(零),但我想要一个没有输入的明文框。
我还将其默认值设置为null,如下面的代码所示:
ValueProperty = DependencyProperty.Register(
"Value",
typeof(int?), typeof(ChooseCustomerControl),
new FrameworkPropertyMetadata(null));
我怎样才能实现这一目标?