示例#1
0
        private static void CheckEnableDisable(BindingListener listener)
        {
            if (listener == null)
            {
                return;
            }

            var thisObject = listener.Context as ButtonCommandBehavior;

            if (thisObject != null)
            {
                thisObject.EnableDisableElement();
            }
        }
示例#2
0
 public ButtonCommandBehavior()
 {
     _listenerCommand = new BindingListener(
         this,
         (s, e) =>
     {
         var sender = s as BindingListener;
         if (sender != null)
         {
             OnCommandChanged(
                 sender.Context as ButtonCommandBehavior,
                 e.EventArgs);
         }
     });
 }