Change the focused border color of a Wpf textbox when it GotFocus()

前端 未结 1 402
滥情空心
滥情空心 2021-01-12 13:35

What I want: to change the border color to yellow when any textbox has focus.

What I tried:


    

You can find the original style template in the WPF source code: https://github.com/dotnet/wpf/blob/c271205b80c27df976acbd7236ec637090d127c1/src/Microsoft.DotNet.Wpf/src/Themes/XAML/TextBox.xaml#L415-L441

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