Ejemplo n.º 1
0
 public XIconSwitchCell()
 {
     InputHorizontalOptions = LayoutOptions.EndAndExpand;
     xSwitch = new XSwitch
     {
         IsToggled = IsToggled
     };
     xSwitch.SetBinding(Switch.IsToggledProperty, IsToggledProperty.PropertyName);
     xSwitch.BindingContext = this;
     this.FormLayout(xSwitch);
 }
Ejemplo n.º 2
0
 public XSwitchCell()
 {
     InputHorizontalOptions = LayoutOptions.EndAndExpand;
     xSwitch = new XSwitch
     {
         IsToggled      = IsToggled,
         OnTintColor    = OnTintColor,
         TintColor      = TintColor,
         ThumbTintColor = ThumbTintColor
     };
     xSwitch.SetBinding(Switch.IsToggledProperty, IsToggledProperty.PropertyName);
     xSwitch.BindingContext = this;
     this.FormLayout(xSwitch);
 }