How to display items in Canvas through Binding

前端 未结 1 1168
盖世英雄少女心
盖世英雄少女心 2020-11-27 17:43

I have list of items that I want to display in Canvas using data binding.

ItemsToShowInCanvas = new ObservableCollection
   {
       new I         


        
1条回答
  •  失恋的感觉
    2020-11-27 18:11

    Set the ItemsPanel to a Canvas and bind the containers instead of the TextBlock in the DataTemplate

    
        
            
                
            
        
        
            
        
        
            
                
            
        
    
    

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