Using WPF I have a list of rectangles (which can have an undefined number of rectangles in it), and a canvas. I want to position those rectangles on the canvas using data binding.
I have tried using an items control, and seems to stack each item on top of the next one like a vertical stack panel.
All my rectangles have the co-ordinates 0,0, but they are all on top of each other down the canvas.
Any alternatives to using an items control?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…