예제 #1
0
파일: Style.cs 프로젝트: zhamppx97/maui
 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);
     }
 }