在 WPF 中,我希望能够对默认情况下如何应用我的绑定进行模板化。
例如,我想写:
Text="{Binding Path=PedigreeName}"
但就好像我输入了:
Text="{Binding Path=PedigreeName, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}"
任何的想法 ?
谢谢,
- 帕特里克