示例#1
0
        private void ComboBox_Loaded(object sender, RoutedEventArgs e)
        {
            List <Student> myStudents;

            myStudents = sbl.DropDownList();
            ComboBox.DisplayMemberPath = "Name";
            ComboBox.ItemsSource       = myStudents;
        }