WPF TextBox Border when selected?

后端 未结 4 783
生来不讨喜
生来不讨喜 2021-02-06 03:35

I want to make a WPF TextBox have a DarkBlue border and thickness equal to 1. I want to make the WPF have this border ( DarkBlue, thickness set to 1 ) even when the TextBox is s

4条回答
  •  执笔经年
    2021-02-06 04:00

    Check FocusVisualStyle property of the FrameworkElement object (ancestor of TextBox). It's purpose is to define style applied when an element is selected.

提交回复
热议问题