Код: Выделить всё
Код: Выделить всё
private void Button_Click(object sender, RoutedEventArgs e)
{
var person = new Person()
{
Name = "Aaa",
Age = 27
};
myDataGrid.Items.Add(person);
}
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
Подробнее здесь: https://stackoverflow.com/questions/145 ... lbar-issue
Мобильная версия