Fix programatically toggle switch
This commit is contained in:
Родитель
56f942d058
Коммит
7335f75607
|
@ -53,7 +53,7 @@ namespace AlohaKit.Controls
|
|||
}
|
||||
|
||||
public static readonly BindableProperty IsOnProperty =
|
||||
BindableProperty.Create(nameof(IsOn), typeof(bool), typeof(ToggleSwitch), false,
|
||||
BindableProperty.Create(nameof(IsOn), typeof(bool), typeof(ToggleSwitch), false, defaultBindingMode: BindingMode.TwoWay,
|
||||
propertyChanged: (bindableObject, oldValue, newValue) =>
|
||||
{
|
||||
if (newValue != null && bindableObject is ToggleSwitch toggleSwitch)
|
||||
|
|
Загрузка…
Ссылка в новой задаче