Creating a table with Silverlight for Windows Phone 7

前端 未结 3 459
名媛妹妹
名媛妹妹 2020-12-10 22:57

I\'d like to create a table on WP7. This is my current approach using a ListBox with a Grid as the data template.



        
3条回答
  •  旧时难觅i
    2020-12-10 23:39

    Here is my solution using SharedSizeGroup as suggested by ColinE.

    
    
        
            
            
            
    
            
                
                    
                        
                    
                    
                        
                    
                    
                        
                    
                
            
        
        
            
        
    
    

    Even the maximum with of each column can be controlled via the TextBlock's MaxWidth property. The SharedSizeGroups ensure that the TextBlocks have the same size in each row.

提交回复
热议问题