public static T GetAttachedValue <T>(Binding.BindableObject bindable, Binding.BindableProperty property) { if (bindable == null) { throw new ArgumentNullException(nameof(bindable)); } return((T)bindable.GetValue(property)); }
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); }
internal static void SetChildValue(Binding.BindableObject bindable, Binding.BindableProperty property, object value) { bindable.SetValueCore(property, value, SetValueFlags.None, SetValuePrivateFlags.ManuallySet, false); }