Beispiel #1
0
 public void SubscribeBinder(IBindingElement child)
 {
     if (!this.Binders.Contains(child))
     {
         this.Binders.Add(child);
     }
     child.Model = this.BindableContext;
 }
Beispiel #2
0
 private static string GetDeviceNameForUserInterface(IBindingElement element)
 {
     if (element is IBindingElement2 element2)
     {
         return(element2.DeviceInUserInterface);
     }
     return(element.Device);
 }
        /// <summary>
        /// Unregisters the binder with this context
        /// </summary>
        /// <param name="child"></param>
        public void UnsubscribeBinder(IBindingElement child)
        {
            child.Model = null;

            Binders.Remove(child);
        }