MahApps / MahApps.Metro

A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
https://mahapps.com
MIT License
9.32k stars 2.45k forks source link

RichTextBox's ContextMenu does not display spell-check corrections #986

Closed wyrdathru closed 10 years ago

wyrdathru commented 10 years ago

MetroRichTextBox styles its context menu with TextBoxMetroContextMenu, where the items are manually set:

<ContextMenu x:Key="TextBoxMetroContextMenu"
                 Style="{StaticResource MetroContextMenu}">
        <MenuItem Command="ApplicationCommands.Cut"
                  Style="{DynamicResource MetroMenuItem}" />
        <MenuItem Command="ApplicationCommands.Copy"
                  Style="{DynamicResource MetroMenuItem}" />
        <MenuItem Command="ApplicationCommands.Paste"
                  Style="{DynamicResource MetroMenuItem}" />
</ContextMenu>

Due to this, spell-check is ineffective when enabled as the list of proposed corrections cannot be seen when right-clicking the incorrectly typed word.

mahapps metro_spell-check

vs.

wpf_spell-check

Can anyone see a way to easily merge the menu items from spell-check into this list?

topvis commented 10 years ago

Found a link http://stackoverflow.com/questions/210634/add-menu-item-to-default-context-menu Didn't test myself.

punker76 commented 10 years ago

fixed with #1056