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

            CleanUpWeakReferences();
        }