Example #1
0
 /// <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));
 }
Example #2
0
 public static BindingMode GetRealizedMode(this BindingBase self, BindableProperty property)
 {
     return(self.Mode != BindingMode.Default ? self.Mode : property.DefaultBindingMode);
 }