示例#1
0
        public MainW()
        {
            InitializeComponent();
            Alumnos alumnos = new Alumnos();

            DataContext = new AlumnosViewModel(alumnos);
        }
示例#2
0
 public AlumnosViewModel(Alumnos alumnos)
 {
     Alumnos = new List <Alumnos>();
     Alumnos.Add(alumnos);
 }