コード例 #1
0
 protected override void UnbindProperty()
 {
     if (boundProperty != null)
     {
         boundProperty.CanExecute.Changed -= OnCanExecuteChanged;
         boundProperty          = null;
         canExecuteSource.Value = false;
     }
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public CommandBoxer(IObservableCommand <TBoxed> boxedCommand)
 {
     this.boxedCommand = boxedCommand;
 }
 public Boolean Equals(IObservableCommand other)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 public OperatorCommandViewModel(IObservableCommand <T> value)
 {
     Value = value;
 }
コード例 #6
0
 public CommandViewModel(IObservableCommand value)
 {
     Value = value;
 }