public static void AddBindings(this Behaviour behaviour, IDictionary <object, IEnumerable <BindingDescription> > bindingMap, object key = null) { if (bindingMap == null) { return; } IBindingContext context = behaviour.BindingContext(); foreach (var kvp in bindingMap) { context.Add(kvp.Key, kvp.Value, key); } }