protected override void UnbindProperty() { if (boundProperty != null) { boundProperty.CanExecute.Changed -= OnCanExecuteChanged; boundProperty = null; canExecuteSource.Value = false; } }
protected override void BindProperty(object property) { boundProperty = property as IObservableCommand; if (boundProperty != null) { boundProperty.CanExecute.Changed += OnCanExecuteChanged; RaiseFirstNotification(); } else { Debug.LogError($"Property type ({property.GetType()}) different from expected type {typeof(IObservableCommand)}", context); } }
public CommandBoxer(IObservableCommand <TBoxed> boxedCommand) { this.boxedCommand = boxedCommand; }
public Boolean Equals(IObservableCommand other) { throw new NotImplementedException(); }
public OperatorCommandViewModel(IObservableCommand <T> value) { Value = value; }
public CommandViewModel(IObservableCommand value) { Value = value; }