Exemplo n.º 1
0
Arquivo: Style.cs Projeto: gywerd/CPUI
 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);
     }
 }
Exemplo n.º 2
0
 void IStyle.UnApply(BindableObject bindable)
 {
     UnApplyCore(bindable, BasedOn ?? GetBasedOnResource(bindable));
     bindable.RemoveDynamicResource(_basedOnResourceProperty);
     _targets.RemoveAll(wr =>
     {
         BindableObject target;
         return(wr.TryGetTarget(out target) && target == bindable);
     });
 }