How to use Canvas as the ItemsPanel for an ItemsControl in Silverlight 3

前端 未结 4 1987
闹比i
闹比i 2021-02-05 22:13

I am trying to set the Canvas properties in an ItemsControl DataTemplate with Silverlight 3. According to this post, the only way of doing that is to set it using the ItemsCont

4条回答
  •  长发绾君心
    2021-02-05 22:22

    Silverlight4 does not bind to attached properties in style. I suggest using David Anson's approach described here.

        
        
    
    

    And in listbox:

    ItemContainerStyle="{StaticResource ScreenBindStyle}"
    

提交回复
热议问题