<ig:XamSpellChecker x:Name="spellChecker"> <ig:XamSpellChecker.SpellOptions> <ig:SpellOptions AllowMixedCase="True" AllowWordsWithDigits="True"/> </ig:XamSpellChecker.SpellOptions> … </ig:XamSpellChecker>
You can override the default settings of the xamSpellChecker control so that in certain situations your end users’ input can be accepted by the spell checker. For example, by default, words with mixed case would be considered a spelling error by the spell checker.
The SpellOptions object exposes many properties which allow you to customize how the xamSpellChecker control checks for spelling errors.
The following table explains each property, the default value, and an example to help you understand how each property determines how words are checked for spelling errors.
The following code demonstrates how to allow the xamSpellChecker control to accept words with numbers and mixed case.
In XAML:
<ig:XamSpellChecker x:Name="spellChecker"> <ig:XamSpellChecker.SpellOptions> <ig:SpellOptions AllowMixedCase="True" AllowWordsWithDigits="True"/> </ig:XamSpellChecker.SpellOptions> … </ig:XamSpellChecker>
In Visual Basic:
… Me.spellChecker.SpellOptions.AllowMixedCase = True Me.spellChecker.SpellOptions.AllowWordsWithDigits = True …
In C#:
.. this.spellChecker.SpellOptions.AllowMixedCase = true; this.spellChecker.SpellOptions.AllowWordsWithDigits = true; ..