wpf using grid as itemshost stacking multiple items in single 'cell' automatically
问题 I am binding an items control to a datasource and using a grid as my itemshost. I wish to have the items locate themselves into the correct cell in the grid (I can do this), and also stack themselves so they are not all on top of each other (I can't figure out how to insert the items into a stackpanel or other panel in the grid). here is the .cs file for the two classes: public class listofdata { public List<data> stuff { get; set; } public listofdata() { stuff = new List<data>(); stuff.Add