Ejemplo n.º 1
0
        void ApplyBindings(object oldContext, bool skipBindingContext)
        {
            foreach (BindablePropertyContext context in _properties.ToArray())
            {
                BindingBase binding = context.Binding;
                if (binding == null)
                {
                    continue;
                }

                if (skipBindingContext && context.Property == BindingContextProperty)
                {
                    continue;
                }

                binding.Unapply();
                binding.Apply(BindingContext, this, context.Property);
            }
        }
Ejemplo n.º 2
0
        internal void ApplyBindings(bool skipBindingContext, bool fromBindingContextChanged)
        {
            for (int i = 0, propLength = _properties.Count; i < propLength; i++)
            {
                BindablePropertyContext context = _properties [i];
                BindingBase             binding = context.Binding;
                if (binding == null)
                {
                    continue;
                }

                if (skipBindingContext && ReferenceEquals(context.Property, BindingContextProperty))
                {
                    continue;
                }

                binding.Unapply(fromBindingContextChanged: fromBindingContextChanged);
                binding.Apply(BindingContext, this, context.Property, fromBindingContextChanged: fromBindingContextChanged);
            }
        }
Ejemplo n.º 3
0
        void ApplyBindings(bool skipBindingContext)
        {
            var prop = _properties.ToArray();

            for (int i = 0, propLength = prop.Length; i < propLength; i++)
            {
                BindablePropertyContext context = prop [i];
                BindingBase             binding = context.Binding;
                if (binding == null)
                {
                    continue;
                }

                if (skipBindingContext && ReferenceEquals(context.Property, BindingContextProperty))
                {
                    continue;
                }

                binding.Unapply();
                binding.Apply(BindingContext, this, context.Property);
            }
        }