Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改所选文本或TextRangein的背景样式FlowDocument并为其设置带角半径的边框?
TextRange
FlowDocument
像这样的东西:
尝试为项目添加样式:
<Style.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter Property="Foreground" Value="Color"/> </Trigger> </Style.Triggers>