17 references to SwitchCell
Microsoft.Maui.Controls (17)
Cells\SwitchCell.cs (5)
11
public static readonly BindableProperty OnProperty = BindableProperty.Create(nameof(On), typeof(bool), typeof(
SwitchCell
), false, propertyChanged: (obj, oldValue, newValue) =>
13
var
switchCell = (
SwitchCell
)obj;
18
public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(
SwitchCell
), default(string));
21
public static readonly BindableProperty OnColorProperty = BindableProperty.Create(nameof(OnColor), typeof(Color), typeof(
SwitchCell
), null);
Compatibility\Handlers\ListView\iOS\SwitchCellRenderer.cs (11)
43
var
boolCell = (
SwitchCell
)item;
66
var
boolCell = (
SwitchCell
)sender;
69
if (e.PropertyName ==
SwitchCell
.OnProperty.PropertyName)
74
else if (e.PropertyName ==
SwitchCell
.TextProperty.PropertyName)
82
else if (e.PropertyName ==
SwitchCell
.OnColorProperty.PropertyName)
99
((
SwitchCell
)realCell.Cell).On = sw.On;
102
void UpdateFlowDirection(CellTableViewCell cell,
SwitchCell
switchCell)
109
void UpdateIsEnabled(CellTableViewCell cell,
SwitchCell
switchCell)
121
void UpdateOnColor(CellTableViewCell cell,
SwitchCell
switchCell)
Hosting\AppHostBuilderExtensions.cs (1)
127
handlersCollection.AddHandler(typeof(
SwitchCell
), typeof(Handlers.Compatibility.SwitchCellRenderer));