UpdateCardText() public method

public UpdateCardText ( Card>.Action action ) : void
action Card>.Action
return void
示例#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();
     });
 }
示例#2
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();
         });
 }