Пример #1
0
        public static void Bind(this BindingService service, object target, string propName, string path, Func <object, object> converter)
        {
            var funcConverter = new FuncConverter()
            {
                Function = converter,
            };
            var binding = new BindingInfo(propName, path, funcConverter);

            service.Bind(target, binding);
        }
Пример #2
0
        public static void Bind(this BindingService service, object target, string propName, string path, IValueConverter converter)
        {
            var binding = new BindingInfo(propName, path, converter);

            service.Bind(target, binding);
        }
Пример #3
0
        public static void Bind(this BindingService service, object target, string propName, string path)
        {
            var binding = new BindingInfo(propName, path);

            service.Bind(target, binding);
        }