コード例 #1
0
 protected override void OnBindingContextChanged()
 {
     base.OnBindingContextChanged();
     if (BindingContext != null)
     {
         UpdateBackgroundColor(BindingContext.Equals(_previouslySelectedBindingContext));
     }
 }
コード例 #2
0
 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");
 }
コード例 #3
0
 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.
 }
コード例 #4
0
 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");
 }