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); } } }
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); } }
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); }
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); } } }
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); }
public static void AddBindings(this IMvxBindingTouchView view, IDictionary <object, IEnumerable <MvxBindingDescription> > bindingMap) { view.AddBindings(view.DefaultBindingSource, bindingMap); }
public static void AddBindings(this IMvxBindingTouchView view, string targetPropertyName, IEnumerable <MvxBindingDescription> bindingDescriptions) { view.AddBindings(view.DefaultBindingSource, targetPropertyName, bindingDescriptions); }
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)); }
public static void AddBindings(this IMvxBindingTouchView view, object target, IEnumerable <MvxBindingDescription> bindingDescriptions) { view.AddBindings(view.DefaultBindingSource, target, bindingDescriptions); }
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)); }
public static void AddBindings(this IMvxBindingTouchView view, object target, string bindingText) { view.AddBindings(view.DefaultBindingSource, target, bindingText); }
public static T Bind <T>(this T element, IMvxBindingTouchView touchView, object source, IEnumerable <MvxBindingDescription> descriptions) { touchView.AddBindings(element, source, descriptions); return(element); }
public static void AddBindings(this IMvxBindingTouchView view, IDictionary <object, string> bindingMap) { view.AddBindings(view.DefaultBindingSource, bindingMap); }
public static void AddBindings(this IMvxBindingTouchView view, object source, object bindingObject) { var bindingMap = bindingObject.ToSimplePropertyDictionary(); view.AddBindings(source, bindingMap); }
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; }
public static void AddBindings(this IMvxBindingTouchView view, string targetPropertyName, string bindingText) { view.AddBindings(view.DefaultBindingSource, targetPropertyName, bindingText); }
public static T Bind <T>(this T element, IMvxBindingTouchView touchView, object source, string descriptionText) { touchView.AddBindings(element, source, descriptionText); return(element); }