UpdateCardText() public méthode

public UpdateCardText ( Card>.Action action ) : void
action Card>.Action
Résultat void
Exemple #1
0
 public CardRun(ChatCard card)
     : base(new Run(card.ToString()))
 {
     this.FontWeight = FontWeights.Bold;
     this.Foreground = Brushes.DarkSlateGray;
     this.Cursor     = Cursors.Hand;
     _card           = card;
     _card.UpdateCardText((model, gamecard) =>
     {
         (this.Inlines.FirstInline as Run).Text = model.PropertyName();
     });
 }
 public CardRun(ChatCard card)
     : base(new Run(card.ToString()))
 {
     this.FontWeight = FontWeights.Bold;
     this.Foreground = Brushes.DarkSlateGray;
     this.Cursor = Cursors.Hand;
     _card = card;
     _card.UpdateCardText((model, gamecard) =>
         {
             (this.Inlines.FirstInline as Run).Text = model.PropertyName();
         });
 }