public VM() { game.renderCard(); this.ShuffledDeck = game.ShuffledDeck; this.startGame(); this.YourHand.CollectionChanged += (s, args) => { if (args.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Add) { CommandManager.InvalidateRequerySuggested(); } }; this.DealerHand.CollectionChanged += (s, args) => { if (args.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Add) { CommandManager.InvalidateRequerySuggested(); } }; this.AddCardCommand = new SimpleCommand((obj) => true, (obj) => { YourHand.Add(ShuffledDeck[currentCount]); this.currentCount++; HandCheck(this.currentCount); } ); this.StandCommand = new SimpleCommand((obj) => true, (obj) => { didStand = true; Stand(); } ); }