This is a migrated thread and some comments may be shown as answers.

Error when spell checking empty MS RichTextBox

1 Answer 18 Views
SpellChecker
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 23 Nov 2011, 04:28 PM
Just like the title says. I am using the following code in a behavior. It used to work before the Q3 release, I am pretty sure of that.
RadSpellChecker.Check(this.Target, SpellCheckingMode.AllAtOnce);

This is the error I am getting:

Time of exception: 2011-11-23 16:17
Message: value
Stacktrace:    at System.Windows.Controls.RichTextBox.set_Xaml(String value)
   at Telerik.Windows.Documents.FormatProviders.MsRichTextBoxXaml.MsRichTextBoxXamlImporter.Import(String xaml)
   at Telerik.Windows.Documents.FormatProviders.MsRichTextBoxXaml.MsRichTextBoxXamlFormatProvider.Import(String xaml)
   at Telerik.Windows.Documents.Proofing.RichTextBoxSpellChecker.GetContentAsDocument()
   at Telerik.Windows.Controls.RadSpellChecker.CheckAllAtOnce(Control controlToCheck)
   at Telerik.Windows.Controls.RadSpellChecker.Check(Control controlToCheck, SpellCheckingMode spellCheckingMode)
   at GLS.Gui.Controls.Behaviors.SpellCheckTextControlBehavior.<DoSpellCheck>b__12()
   at GLS.Gui.Helper.SpellCheckHelper.LoadDictionary(String culture, Boolean hasIncreasedIsoStorageQuota, Action onCompleted, Action`1 onProgress)
   at GLS.Gui.Controls.Behaviors.SpellCheckTextControlBehavior.DoSpellCheck(Boolean hasIncreasedIsoStorageQuota)
   at GLS.Gui.Controls.Behaviors.SpellCheckTextControlBehavior._ContextMenu_ItemClick(Object sender, RadRoutedEventArgs e)
   at Telerik.Windows.Controls.MenuBase.OnItemClick(RadRoutedEventArgs args)
   at Telerik.Windows.Controls.MenuBase.OnItemClick(Object sender, RadRoutedEventArgs args)
   at Telerik.Windows.RadRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
   at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
   at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
   at Telerik.Windows.Controls.RadMenuItem.OnClickImpl()
   at Telerik.Windows.Controls.RadMenuItem.OnClick()
   at Telerik.Windows.Controls.RadMenuItem.HandleMouseUp()
   at Telerik.Windows.Controls.RadMenuItem.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)


Best regards,
/Henrik

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 28 Nov 2011, 05:08 PM
Hello Henrik,

Thank you for reporting this issue. We will make sure to fix this bug in the upcoming Service Pack, if not sooner.
The Telerik points in your account have been updated in appreciation of your involvement.

Regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
SpellChecker
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or