WPF Grid - How to apply a style for just one column?

前端 未结 2 1428
孤城傲影
孤城傲影 2020-12-30 05:46

I have a WPF Grid with many rows and columns, all containing things like TextBlocks and TextBoxes.

For this specific situation I want all the stuff in column 1 to ha

2条回答
  •  死守一世寂寞
    2020-12-30 06:10

    You can define some styles like below and assign them to your Column.ElementStyle property:

    
           
    
           
    
           
    
    
    
          
               
               
        
    
    

提交回复
热议问题