Unbind from previous bindable when rebinding a SettingsItem

This commit is contained in:
Dean Herbert 2019-06-18 14:24:44 +09:00
parent 0d4c6d2cbc
commit 6823ba1ab0
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ public virtual Bindable<T> Bindable
set
{
if (bindable != null)
controlWithCurrent?.Current.UnbindFrom(bindable);
bindable = value;
controlWithCurrent?.Current.BindTo(bindable);