示例#1
0
        public IBinder Apply()
        {
            var source = new BindableSource <TSourceValue>(_source, _propertyName, BindingMode.OneWay);
            var binder = new MethodBinder <TSourceValue>(source, _action);

            if (Set == null)
            {
                throw new InvalidOperationException("Binding set is not set");
            }

            Set.Add(binder);
            binder.Start();
            return(binder);
        }