WPF rounded corner textbox

前端 未结 6 450
谎友^
谎友^ 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:23

    You can change all textboxes to have rounded corners by using the following style:

    
      
    
    

    Inspired by the following answer: https://stackoverflow.com/a/13858357/3387453

提交回复
热议问题