public Result(List <Card> card, int all_count) { InitializeComponent(); CardView list = Resources["CardListView"] as CardView; cnt.Text = "" + all_count; for (int i = card.Count - 1; i >= 0; --i) { if (card[i].count > 0) { list.Add(new Card(card[i].image_url, card[i].star, card[i].name, card[i].count)); } } }