<TextBox Grid.Column=
"0" Style="{StaticResource TextBoxStyle}" Height="30" Text="{Binding CodeBinding, Mode=TwoWay, ValidatesOnExceptions=True}" Validation.ErrorTemplate="{StaticResource errorTemplateStyle}"></TextBox>
public string CodeBinding
{
get
{
return code;
}
set
{
SetProperty(ref code, value, () => CodeBinding);
if (value==null) { return; } string sql = "";
调试会报错,运行会显示错误警告"人员编码重复"
转载于:https://www.cnblogs.com/Lulus/p/8158364.html
转载请注明原文地址: https://win8.8miu.com/read-1498306.html