WPF rounded corner textbox

前端 未结 6 442
谎友^
谎友^ 2020-11-30 01:32

I don\'t know WPF and am now learning it. I was looking for rounded corners TextBox in WPF. So I searched Google and found a piece of XAML :

<
6条回答
  •  既然无缘
    2020-11-30 02:32

    @Smolla had a much better answer in his comment on @Daniel Casserly's answer:

    
      
        
      
    
    

    If you want all the borders of TextBoxes and ListBoxes to have rounded corners, put the style into your Window's or App's .

提交回复
热议问题