How to keep WPF TextBox selection when not focused?

后端 未结 5 850
清酒与你
清酒与你 2020-12-03 07:23

I want to show a selection in a WPF TextBox even when it\'s not in focus. How can I do this?

5条回答
  •  情书的邮戳
    2020-12-03 07:49

    public class CustomRichTextBox : RichTextBox
    {
         protected override void OnLostFocus(RoutedEventArgs e)
         {
    
         }
    }
    

提交回复
热议问题