using System.Collections.Generic;
using System.Windows;
namespace CatTable
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
List<Cat> cats = new List<Cat>
{
new Cat { Name = "Мурзик", Beauty = 9, Cuteness = 10 },
new Cat { Name = "Барсик", Beauty = 8, Cuteness = 9 },
new Cat { Name = "Луна", Beauty = 10, Cuteness = 10 },
new Cat { Name = "Снежок", Beauty = 9, Cuteness = 8 },
new Cat { Name = "Пушок", Beauty = 7, Cuteness = 10 }
};
CatGrid.ItemsSource = cats;
}
}
public class Cat
{
public string Name { get; set; }
public int Beauty { get; set; }
public int Cuteness { get; set; }
}
}