Merge pull request #67 from CristiSandu/bugfix/unable-to-toggle-switch-programatically
Fix programatically toggle switch
This commit is contained in:
Коммит
6e5b7aebff
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче