internal static Cell BoolCell(PropertyInfo property, IContact context, Page parent = null) { var label = CreateLabel(property); var switchCell = new SwitchCell(); switchCell.SetValue(SwitchCell.TextProperty, label); switchCell.SetBinding(SwitchCell.OnProperty, property.Name); switchCell.BindingContext = context; return(switchCell); }