TextBlock text wrapping in GridViewColumn.CellTemplate not working

前端 未结 1 695
无人及你
无人及你 2021-01-11 09:38

I am having problems getting the TextWrapping to work in this example. Can anyone see what I am duing wrong here?

    

        
1条回答
  •  生来不讨喜
    2021-01-11 09:56

    You are setting both DisplayMemberBinding and CellTemplate. Remove DisplayMemberBinding when you use CellTemplate. Also remove the Width for the TextBlock and it'll work

    
        
            
                
                
                    
                        
                            
                        
                    
                
                
            
        
    
    

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