Skip to content

Commit 6e5b7ae

Browse files
authored
Merge pull request #67 from CristiSandu/bugfix/unable-to-toggle-switch-programatically
Fix programatically toggle switch
2 parents 2ab4ea9 + 7335f75 commit 6e5b7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AlohaKit/Controls/ToggleSwitch/ToggleSwitch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public Brush ThumbBrush
5353
}
5454

5555
public static readonly BindableProperty IsOnProperty =
56-
BindableProperty.Create(nameof(IsOn), typeof(bool), typeof(ToggleSwitch), false,
56+
BindableProperty.Create(nameof(IsOn), typeof(bool), typeof(ToggleSwitch), false, defaultBindingMode: BindingMode.TwoWay,
5757
propertyChanged: (bindableObject, oldValue, newValue) =>
5858
{
5959
if (newValue != null && bindableObject is ToggleSwitch toggleSwitch)

0 commit comments

Comments
 (0)