不再使用click Commend属性 绑定后端字段
后端则使用单例
private RelayCommand _deleteCommand;
public RelayCommand DeleteCommand
{
get
{
if (_deleteCommand == null)
{
_deleteCommand = new RelayCommand(() => 使用的方法());
return _deleteCommand;
}
return _deleteCommand;
}
set { _deleteCommand = value; }
}