void IStyle.UnApply(BindableObject bindable) { UnApplyCore(bindable, BasedOn ?? GetBasedOnResource(bindable)); bindable.RemoveDynamicResource(_basedOnResourceProperty); lock (_targets) { _targets.RemoveAll(wr => wr != null && wr.TryGetTarget(out BindableObject target) && target == bindable); } }