@@ -116,7 +116,7 @@ private static void TextBoxOnContextMenuOpening(object sender, ContextMenuEventA
116116 if ( spellingError != null )
117117 {
118118 Style spellingSuggestionStyle =
119- contextMenu . TryFindResource ( Spelling . SpellingSuggestionMenuItemStyleKey ) as Style ;
119+ contextMenu . TryFindResource ( Spelling . SuggestionMenuItemStyleKey ) as Style ;
120120
121121 int insertionIndex = 0 ;
122122 bool hasSuggestion = false ;
@@ -137,28 +137,28 @@ private static void TextBoxOnContextMenuOpening(object sender, ContextMenuEventA
137137 {
138138 contextMenu . Items . Insert ( insertionIndex ++ , new MenuItem
139139 {
140- Style = contextMenu . TryFindResource ( Spelling . SpellingNoSuggestionsMenuItemStyleKey ) as Style ,
140+ Style = contextMenu . TryFindResource ( Spelling . NoSuggestionsMenuItemStyleKey ) as Style ,
141141 Tag = typeof ( Spelling )
142142 } ) ;
143143 }
144144
145145 contextMenu . Items . Insert ( insertionIndex ++ , new Separator
146146 {
147- Style = contextMenu . TryFindResource ( Spelling . SpellingSeparatorStyleKey ) as Style ,
147+ Style = contextMenu . TryFindResource ( Spelling . SeparatorStyleKey ) as Style ,
148148 Tag = typeof ( Spelling )
149149 } ) ;
150150
151151 contextMenu . Items . Insert ( insertionIndex ++ , new MenuItem
152152 {
153153 Command = EditingCommands . IgnoreSpellingError ,
154154 CommandTarget = textBoxBase ,
155- Style = contextMenu . TryFindResource ( Spelling . SpellingIgnoreAllMenuItemStyleKey ) as Style ,
155+ Style = contextMenu . TryFindResource ( Spelling . IgnoreAllMenuItemStyleKey ) as Style ,
156156 Tag = typeof ( Spelling )
157157 } ) ;
158158
159159 contextMenu . Items . Insert ( insertionIndex , new Separator
160160 {
161- Style = contextMenu . TryFindResource ( Spelling . SpellingSeparatorStyleKey ) as Style ,
161+ Style = contextMenu . TryFindResource ( Spelling . SeparatorStyleKey ) as Style ,
162162 Tag = typeof ( Spelling )
163163 } ) ;
164164 }
0 commit comments