private void EnsureCancelCommand()
{
if (_CancelCommand == null)
{
_CancelCommand = ViewModelFactory.CreateViewModel<SimpleCommandViewModel.Factory>().Invoke(
DataContext,
this,
ValueInputTaskViewModelResources.CancelCommand_Name,
ValueInputTaskViewModelResources.CancelCommand_Tooltip,
Cancel,
null, null);
_CancelCommand.IsCancel = true;
}
}