How to bind a canvas to a list of rectangles

前端 未结 1 1824
孤城傲影
孤城傲影 2020-12-11 20:02

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 bi

1条回答
  •  清歌不尽
    2020-12-11 20:46

    You need to account for the wrapping of the items when bound:

    
        
            
                
            
        
        
            
        
        
            
                
            
        
    
    

    0 讨论(0)
提交回复
热议问题