From your explanation it seems you are trying to pass the string property to which the TextBox is bound to the spellchecker, is that correct? RadSpellChecker's Check() method requires a Control
instance to be passed as parameter. That said, I'd suggest you pass the TextBox from your view as a command parameter.
Additionally, in some cases MEF is unable to load the needed spellchecker. To resolve the problem you can register the spellcheckers for TextBox before the RadSpellChecker.Check() call like this:
IControlSpellChecker controlSpellchecker = ControlSpellCheckersManager.GetControlSpellChecker(
ISpellChecker spellChecker = controlSpellchecker.SpellChecker;
DocumentSpellChecker documentSpellChecker = (DocumentSpellChecker)spellChecker;
I hope this helps!
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>