mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
使 RichTextBox 的默认右键菜单符合主题
This commit is contained in:
parent
3c8fc094ac
commit
b06fe3d477
2 changed files with 21 additions and 0 deletions
|
@ -150,6 +150,13 @@
|
|||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
FontFamily="Consolas">
|
||||
<RichTextBox.ContextMenu>
|
||||
<ContextMenu>
|
||||
<MenuItem Command="ApplicationCommands.Copy"/>
|
||||
<MenuItem Command="ApplicationCommands.Cut"/>
|
||||
<MenuItem Command="ApplicationCommands.Paste"/>
|
||||
</ContextMenu>
|
||||
</RichTextBox.ContextMenu>
|
||||
<FlowDocument PageWidth="0"/>
|
||||
</RichTextBox>
|
||||
|
||||
|
|
|
@ -77,6 +77,13 @@
|
|||
<RichTextBox.Document>
|
||||
<FlowDocument PageWidth="0"/>
|
||||
</RichTextBox.Document>
|
||||
<RichTextBox.ContextMenu>
|
||||
<ContextMenu>
|
||||
<MenuItem Command="ApplicationCommands.Copy"/>
|
||||
<MenuItem Command="ApplicationCommands.Cut"/>
|
||||
<MenuItem Command="ApplicationCommands.Paste"/>
|
||||
</ContextMenu>
|
||||
</RichTextBox.ContextMenu>
|
||||
</RichTextBox>
|
||||
</Grid>
|
||||
|
||||
|
@ -126,6 +133,13 @@
|
|||
<RichTextBox.Document>
|
||||
<FlowDocument PageWidth="0"/>
|
||||
</RichTextBox.Document>
|
||||
<RichTextBox.ContextMenu>
|
||||
<ContextMenu>
|
||||
<MenuItem Command="ApplicationCommands.Copy"/>
|
||||
<MenuItem Command="ApplicationCommands.Cut"/>
|
||||
<MenuItem Command="ApplicationCommands.Paste"/>
|
||||
</ContextMenu>
|
||||
</RichTextBox.ContextMenu>
|
||||
</RichTextBox>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
|
Loading…
Reference in a new issue