Exemple #1
0
 public XIconSwitchCell()
 {
     InputHorizontalOptions = LayoutOptions.EndAndExpand;
     xSwitch = new XSwitch
     {
         IsToggled = IsToggled
     };
     xSwitch.SetBinding(Switch.IsToggledProperty, IsToggledProperty.PropertyName);
     xSwitch.BindingContext = this;
     this.FormLayout(xSwitch);
 }
Exemple #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);
 }