static void OnNextBeginDown(InputTarget target, InputArgs args) { if (target.IsBeginDownAvailable()) { target.BeginDown(args); } }
public InputArgsObserver(InputTarget target, Action <InputTarget, InputArgs> onNext) { _target = target; _onNext = onNext; }
private static IDisposable ConnectBeginDown(InputSource source, InputTarget target) { var observer = new InputArgsObserver(target, OnNextBeginDown); return(source.BeginDown.Subscribe(observer));