Specifies the context menu which is used when the end-user right-clicks a misspelled word. A context menu is only available when a spell checking component has been connected with the Spell
Introduced: X8.
public string SpellCheckContextMenu { get; set; }
Public Property SpellCheckContextMenu() As String
Member | Description |
---|---|
(none) | No context menu is displayed when the end-user right-clicks a misspelled word. |
(Default) | The TXText |
other | The property value must be the key of a user-defined context menu. Such a context menu must be added to the Resources dictionary of a Text |
The following XAML example shows how to add a user-defined Context
<Window xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
xmlns:txspell="clr-namespace:TXTextControl.WPF.Proofing;assembly=TXSpell.WPF">
<tx:TextControl Name="textControl1">
<tx:TextControl.Resources>
<ContextMenu x:Key="UserSpellCheckMenu">
<MenuItem Click="MenuItem1_Clicked" Header="MenuItem1"/>
<MenuItem Click="MenuItem2_Clicked" Header="MenuItem2"/>
<MenuItem Click="MenuItem3_Clicked" Header="MenuItem3"/>
</ContextMenu>
</tx:TextControl.Resources>
</tx:TextControl>
</Window>