Silverlight 3 - Data Binding Position of a rectangle on a canvas

前端 未结 5 2181
囚心锁ツ
囚心锁ツ 2020-12-19 13:43

I am currently trying to bind a collection of objects to a Canvas in Silverlight 3 using an ItemsControl as below:



        
5条回答
  •  难免孤独
    2020-12-19 14:06

    You are right, a ContentPresenter is inserted between the Canvas and the Rectangle. One workaround would be to set a left margin instead of a Canvas.Left:

    
        
            
        
    
    

提交回复
热议问题