Merge pull request #30 from Dreamescaper/patch-1

Fix IsOnProperty name
This commit is contained in:
Javier Suárez 2022-09-16 18:43:54 +02:00 коммит произвёл GitHub
Родитель fe09701807 fa14feb97d
Коммит 4307ec7395
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -53,7 +53,7 @@ namespace AlohaKit.Controls
}
public static readonly BindableProperty IsOnProperty =
BindableProperty.Create(nameof(ThumbBrush), typeof(bool), typeof(ToggleSwitch), false,
BindableProperty.Create(nameof(IsOn), typeof(bool), typeof(ToggleSwitch), false,
propertyChanged: (bindableObject, oldValue, newValue) =>
{
if (newValue != null && bindableObject is ToggleSwitch toggleSwitch)
@ -168,4 +168,4 @@ namespace AlohaKit.Controls
}, duration: 0.1, easing: Easing.Linear));
}
}
}
}