I have a user control that has a ListBox with a bunch of other controls. I need to be able to bind the ListBox control in the Si开发者_如何转开发lverlight Page. I need to be able to do this, so that i can use my usercontrol on several different pages and bind it to different table on each page.
Any ideas of how this can be done?
You can expose a DP of type IEnumerable in your UserControl and, as you feel the property change, set your ListBox's ItemsSource to that property.
精彩评论