Hi Cool,
If you refer to spell-check functionality of RadRichTextBox that
we introduced in Q3, it actually works pretty straight-forward. You need to add RadRichTextBox and RadRichTextBoxRibbonUI controls on your Silverlight page which are located in the following assemblies:
Telerik.Windows.Controls
Telerik.Windows.Documents
Telerik.Windows.Controls.Input
Telerik.Windows.Controls.Navigation
Telerik.Windows.Controls.RibbonBar
Telerik.Windows.Controls.RichTextBoxUI
Then you should add a reference to the assembly containing the English dictionary:
Telerik.Windows.Documents.Proofing.Dictionaries.En-US
This is a new assembly added in Q3. RadRichTextBox will load the dictionary using MEF so you should not worry about any binding details.
The spell-checking feature is enabled by default. Thus RadRichTextBox will underline in red all errors found in the document. This feature can be toggled using the property:
RadRichTextBox.IsSpellCheckingEnalbed
Note: If you already have RadRichTextBoxRibbonUI added to your page and you do not want to reset it, you can add only the proofing tools with the designer context menu:
Result should look like in the demo app:
http://demos.telerik.com/silverlight/#RichTextBox/MSWord
On the ribbon UI you have two buttons concerning spell-checking:
Enable Spell Check - this toggles the functionality using the same way as the property mentioned.
Find Next Error - this will search the document for spelling errors and position the context menu on the error to allow you correct the error, add it to the custom dictionary or ignore it:
This functionality can also be invoked through RadRichTextBox.OpenContextMenuOnNextSpellingError() method.
Let us know whether this helps.
Kind regards,
Mike
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items