Esempio n. 1
0
        public static T GetAttachedValue <T>(Binding.BindableObject bindable, Binding.BindableProperty property)
        {
            if (bindable == null)
            {
                throw new ArgumentNullException(nameof(bindable));
            }

            return((T)bindable.GetValue(property));
        }
Esempio n. 2
0
        public static void SetAttachedValue(Binding.BindableObject bindable, Binding.BindableProperty property, object value)
        {
            if (bindable == null)
            {
                throw new ArgumentNullException(nameof(bindable));
            }

            bindable.SetValueCore(property, value, SetValueFlags.None, SetValuePrivateFlags.ManuallySet, false);
        }
Esempio n. 3
0
 internal static void SetChildValue(Binding.BindableObject bindable, Binding.BindableProperty property, object value)
 {
     bindable.SetValueCore(property, value, SetValueFlags.None, SetValuePrivateFlags.ManuallySet, false);
 }