Search code examples
wpfexpression-blend

WPF binding a class to listbox


I have used exprssion blend4 edit itemcontainerstyle and increased 3 textblocks in item. NOW, i want to bind the 3 textblocks to a class. The class has 3 different properties. For example,i has a student class,student has name ,age,and major.I want to bind whole school students to listbox and each textblocks display specific information.


Solution

  • You should read at least the MSDN Data Binding Overview. It provides the necessary basic knowledge about data binding in WPF.