private static void CheckEnableDisable(BindingListener listener) { if (listener == null) { return; } var thisObject = listener.Context as ButtonCommandBehavior; if (thisObject != null) { thisObject.EnableDisableElement(); } }
public ButtonCommandBehavior() { _listenerCommand = new BindingListener( this, (s, e) => { var sender = s as BindingListener; if (sender != null) { OnCommandChanged( sender.Context as ButtonCommandBehavior, e.EventArgs); } }); }