/// <include file="../../docs/Microsoft.Maui.Controls/DataTemplate.xml" path="//Member[@MemberName='SetBinding']/Docs" /> public void SetBinding(BindableProperty property, BindingBase binding) { Values.Remove(property ?? throw new ArgumentNullException(nameof(property))); Bindings[property] = binding ?? throw new ArgumentNullException(nameof(binding)); }
public static BindingMode GetRealizedMode(this BindingBase self, BindableProperty property) { return(self.Mode != BindingMode.Default ? self.Mode : property.DefaultBindingMode); }