protected override void OnBindingContextChanged()
 {
     base.OnBindingContextChanged();
     if (BindingContext != null)
     {
         UpdateBackgroundColor(BindingContext.Equals(_previouslySelectedBindingContext));
     }
 }
 private DeckOfCardsXF <HeapSolitaireCardInfo> FindControl(HeapSolitaireCardInfo?thisCard)
 {
     foreach (DeckOfCardsXF <HeapSolitaireCardInfo>?thisChild in _thisGrid !.Children)
     {
         if (thisChild !.BindingContext.Equals(thisCard))
         {
             return(thisChild);
         }
     }
     throw new BasicBlankException("Card Not Found");
 }
 private IndividualSolitairePileXF?FindControl(PileInfoCP thisPile)
 {
     foreach (var firstControl in _thisStack !.Children)
     {
         var thisGraphics = firstControl as IndividualSolitairePileXF;
         if (thisGraphics !.BindingContext.Equals(thisPile))
         {
             return(thisGraphics);
         }
     }
     return(null); //you can have null this time.
 }
 private DeckOfCardsXF <SolitaireCard> FindControl(SolitaireCard thisCard)
 {
     foreach (var firstControl in _thisCanvas !.Children)
     {
         var thisGraphics = firstControl as DeckOfCardsXF <SolitaireCard>;
         if (thisGraphics !.BindingContext.Equals(thisCard))
         {
             return(thisGraphics);
         }
     }
     return(null !); //for now
     //throw new BasicBlankException("UI Not Found");
 }