Bind Usercontrol contained in a ObservableCollection<CustomClass> in a WrapPanel
问题 I have a class defined this way: public class CustomClass { string Name; int Age; Usercontrol usercontrol; } where Usercontrol is a visual element that I want to insert in a WrapPanel. CustomClass is organized in a static ObservableCollection. public static class CollectionClass { public static ObservableCollection<CustomClass> MyCollection = new ObservableCollection<CustomClass>(); } I am looking to bind the usercontrol property of the CustomClass in the collection to be visualized in the