예제 #1
0
        public static void AddBindings(this IMvxBindingTouchView view, object source, string targetPropertyName, string bindingText)
        {
            object target;

            if (!view.TryGetPropertyValue(targetPropertyName, out target))
            {
                return;
            }

            view.AddBindings(source, target, bindingText);
        }
예제 #2
0
        public static void AddBindings(this IMvxBindingTouchView view, object source, string targetPropertyName, IEnumerable <MvxBindingDescription> bindingDescriptions)
        {
            object target;

            if (!view.TryGetPropertyValue(targetPropertyName, out target))
            {
                return;
            }

            view.AddBindings(source, target, bindingDescriptions);
        }
예제 #3
0
 public static void AddBindings(this IMvxBindingTouchView view, object source, IDictionary <object, string> bindingMap)
 {
     foreach (var kvp in bindingMap)
     {
         var candidatePropertyName = kvp.Key as string;
         if (candidatePropertyName == null)
         {
             view.AddBindings(source, kvp.Key, kvp.Value);
         }
         else
         {
             view.AddBindings(source, candidatePropertyName, kvp.Value);
         }
     }
 }
예제 #4
0
        public static void AddBindings(this IMvxBindingTouchView view, object source, IDictionary <object, IEnumerable <MvxBindingDescription> > bindingMap)
        {
            if (bindingMap == null)
            {
                return;
            }

            foreach (var kvp in bindingMap)
            {
                var candidatePropertyName = kvp.Key as string;
                if (candidatePropertyName == null)
                {
                    view.AddBindings(source, kvp.Key, kvp.Value);
                }
                else
                {
                    view.AddBindings(source, candidatePropertyName, kvp.Value);
                }
            }
        }
예제 #5
0
 public static void AddBindings(this IMvxBindingTouchView view, IDictionary <object, IEnumerable <MvxBindingDescription> > bindingMap)
 {
     view.AddBindings(view.DefaultBindingSource, bindingMap);
 }
예제 #6
0
        public static void AddBindings(this IMvxBindingTouchView view, object source, object target, IEnumerable <MvxBindingDescription> bindingDescriptions)
        {
            var binder = view.GetService <IMvxBinder>();

            view.AddBindings(binder.Bind(source, target, bindingDescriptions));
        }
예제 #7
0
 public static void AddBindings(this IMvxBindingTouchView view, string targetPropertyName, IEnumerable <MvxBindingDescription> bindingDescriptions)
 {
     view.AddBindings(view.DefaultBindingSource, targetPropertyName, bindingDescriptions);
 }
예제 #8
0
        public static void AddBindings(this IMvxBindingTouchView view, object source, object target, string bindingText)
        {
            var binder = view.GetService <IMvxBinder>();

            view.AddBindings(binder.Bind(source, target, bindingText));
        }
예제 #9
0
 public static void AddBindings(this IMvxBindingTouchView view, object target, IEnumerable <MvxBindingDescription> bindingDescriptions)
 {
     view.AddBindings(view.DefaultBindingSource, target, bindingDescriptions);
 }
예제 #10
0
 public static void AddBinding(this IMvxBindingTouchView view, IMvxUpdateableBinding binding)
 {
     view.Bindings.Add(binding);
 }
예제 #11
0
 public static void AddBindings(this IMvxBindingTouchView view, object target, string bindingText)
 {
     view.AddBindings(view.DefaultBindingSource, target, bindingText);
 }
 public BindableSection(IMvxBindingTouchView bindingTouchView, string caption) : base(caption)
 {
     _bindingTouchView = bindingTouchView;
 }
예제 #13
0
 public static void ClearBindings(this IMvxBindingTouchView view)
 {
     view.Bindings.ForEach(x => x.Dispose());
     view.Bindings.Clear();
 }
예제 #14
0
 public static T Bind <T>(this T element, IMvxBindingTouchView touchView, object source, IEnumerable <MvxBindingDescription> descriptions)
 {
     touchView.AddBindings(element, source, descriptions);
     return(element);
 }
예제 #15
0
 public static T Bind <T>(this T element, IMvxBindingTouchView touchView, object source, string descriptionText)
 {
     touchView.AddBindings(element, source, descriptionText);
     return(element);
 }
예제 #16
0
 public static void AddBindings(this IMvxBindingTouchView view, IDictionary <object, string> bindingMap)
 {
     view.AddBindings(view.DefaultBindingSource, bindingMap);
 }
예제 #17
0
        public static void AddBindings(this IMvxBindingTouchView view, object source, object bindingObject)
        {
            var bindingMap = bindingObject.ToSimplePropertyDictionary();

            view.AddBindings(source, bindingMap);
        }
예제 #18
0
 public static void AddBindings(this IMvxBindingTouchView view, object bindingObject)
 {
     view.AddBindings(view.DefaultBindingSource, bindingObject);
 }
 public static Element Bind(this Element element, IMvxBindingTouchView touchView, object source, IEnumerable<MvxBindingDescription> descriptions)
 {
     touchView.AddBindings(element, source, descriptions);
     return element;
 }
 public static Element Bind(this Element element, IMvxBindingTouchView touchView, object source, string descriptionText)
 {
     touchView.AddBindings(element, source, descriptionText);
     return element;
 }
예제 #21
0
 public static void AddBindings(this IMvxBindingTouchView view, string targetPropertyName, string bindingText)
 {
     view.AddBindings(view.DefaultBindingSource, targetPropertyName, bindingText);
 }
 public BindableSection(IMvxBindingTouchView bindingTouchView) : base()
 {
     _bindingTouchView = bindingTouchView;
 }