void IStyle.Apply(BindableObject bindable) { _targets.Add(new WeakReference <BindableObject>(bindable)); if (BaseResourceKey != null) { bindable.SetDynamicResource(_basedOnResourceProperty, BaseResourceKey); } ApplyCore(bindable, BasedOn ?? GetBasedOnResource(bindable)); CleanUpWeakReferences(); }