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