Exemplo n.º 1
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);
         }
     }
 }
Exemplo n.º 2
0
 public static void AddBindings(this IMvxBindingTouchView view, object source, IDictionary <string, string> bindingMap)
 {
     foreach (var kvp in bindingMap)
     {
         view.AddBindings(source, kvp.Key, kvp.Value);
     }
 }
Exemplo n.º 3
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);
        }
Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
0
 public static void AddBindings(this IMvxBindingTouchView view, IDictionary <object, IEnumerable <MvxBindingDescription> > bindingMap)
 {
     view.AddBindings(view.DefaultBindingSource, bindingMap);
 }
Exemplo n.º 7
0
 public static void AddBindings(this IMvxBindingTouchView view, string targetPropertyName, IEnumerable <MvxBindingDescription> bindingDescriptions)
 {
     view.AddBindings(view.DefaultBindingSource, targetPropertyName, bindingDescriptions);
 }
Exemplo n.º 8
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));
        }
Exemplo n.º 9
0
 public static void AddBindings(this IMvxBindingTouchView view, object target, IEnumerable <MvxBindingDescription> bindingDescriptions)
 {
     view.AddBindings(view.DefaultBindingSource, target, bindingDescriptions);
 }
Exemplo n.º 10
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));
        }
Exemplo n.º 11
0
 public static void AddBindings(this IMvxBindingTouchView view, object target, string bindingText)
 {
     view.AddBindings(view.DefaultBindingSource, target, bindingText);
 }
Exemplo n.º 12
0
 public static T Bind <T>(this T element, IMvxBindingTouchView touchView, object source, IEnumerable <MvxBindingDescription> descriptions)
 {
     touchView.AddBindings(element, source, descriptions);
     return(element);
 }
Exemplo n.º 13
0
 public static void AddBindings(this IMvxBindingTouchView view, IDictionary <object, string> bindingMap)
 {
     view.AddBindings(view.DefaultBindingSource, bindingMap);
 }
Exemplo n.º 14
0
        public static void AddBindings(this IMvxBindingTouchView view, object source, object bindingObject)
        {
            var bindingMap = bindingObject.ToSimplePropertyDictionary();

            view.AddBindings(source, bindingMap);
        }
Exemplo n.º 15
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, string descriptionText)
 {
     touchView.AddBindings(element, source, descriptionText);
     return element;
 }
 public static Element Bind(this Element element, IMvxBindingTouchView touchView, object source, IEnumerable<MvxBindingDescription> descriptions)
 {
     touchView.AddBindings(element, source, descriptions);
     return element;
 }
Exemplo n.º 18
0
 public static void AddBindings(this IMvxBindingTouchView view, string targetPropertyName, string bindingText)
 {
     view.AddBindings(view.DefaultBindingSource, targetPropertyName, bindingText);
 }
Exemplo n.º 19
0
 public static T Bind <T>(this T element, IMvxBindingTouchView touchView, object source, string descriptionText)
 {
     touchView.AddBindings(element, source, descriptionText);
     return(element);
 }