As we have described before, Microsoft has roughly divided Silverlight controls into three categories:
First Category: Layout Controls (Layout control)
Category II: Item Controls (Project control)
Category III: User interaction Controls (UI control)
We have described the application of the first type of layout control in blend. This article describes the item Controls, also known as the project control, and the user interaction Controls, also known as the Users interaction control.
Item Controls (Project control)
In actual projects, we often encounter situations where data collections or arrays are processed, and the best way to work with data collections is to use "Binding" bindings. As you know, in ASP. NET, has applied the concept of "Binding" binding, its advantage is to save a lot of development time, reduce the difficulty of development. In Silverlight, Microsoft strengthens the binding feature and uses the item Controls (project control) to display and process data collections and array type data. Silverlight provides four standard project controls, namely Listbox,combobox,tabcontrol and TreeView. Next, I'll show you how to use these controls in blend.
As described above, you first need to bind the data before using item controls, and the binding data needs to have the relevant data source, so we need to define the data source first. This article still uses the previous routine Silverlightblenddemo to create a new usercontrol,itemcontrolsdemo.xaml on the Silverlight client.