目录
一、TreeView 树形列表效果
二、编码关系示意图
三、主要编码
- 定义班级类
using ScoreTools.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
namespace ScoreTools.Models
{
/// <summary>
/// 班级对象,每个班级对象中包含班级名称和一个班级学生成绩集合
/// </summary>
public class Grade : NotifycationBase
{
private string _GradeName;
public string GradeName
{
get { return this._GradeName; }
set
{
this._GradeName = value;
RaisePropertyChanged(() => GradeName);
}
}
private ObservableCollection<StudentSCore> _Scores;
public ObservableCollection<StudentSCore&