Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 686e660

Browse files
committed
Don't highlight selected text on InfoPanel
1 parent 8a6374e commit 686e660

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/GitHub.VisualStudio.UI/UI/Controls/InfoPanel.xaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@
5454
Markdown="{TemplateBinding Message}"
5555
ScrollViewer.CanContentScroll="False"
5656
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
57-
ScrollViewer.VerticalScrollBarVisibility="Hidden"/>
57+
ScrollViewer.VerticalScrollBarVisibility="Hidden">
58+
<markdig:MarkdownViewer.Resources>
59+
<!-- Don't highlight selected text-->
60+
<Style TargetType="{x:Type FlowDocumentScrollViewer}">
61+
<Setter Property="SelectionOpacity" Value="0" />
62+
</Style>
63+
</markdig:MarkdownViewer.Resources>
64+
</markdig:MarkdownViewer>
5865
</DockPanel>
5966
</Border>
6067
</ControlTemplate>

0 commit comments

Comments
 (0)