关于WPF中RichTextBox失去焦点后如何保持高亮显示所选择的内容

其实很简单,只要将容器控件中的附加属性FocusManager.IsFocusScope设为True就可以了 下面是个简单的用例: <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x
相关文章
相关标签/搜索