' page var
Private WithEvents mspellChecker As XamSpellChecker
' page load event
Dim spellBinding As New Binding() spellBinding.Mode = BindingMode.TwoWay Dim propPathSpellBinding As New PropertyPath("Text") spellBinding.Path = propPathSpellBinding spellBinding.Source = Me.narrative mspellChecker = New XamSpellChecker() mspellChecker.DictionaryUri = New Uri("Dictionaries/english-generic-whole.dict", UriKind.Relative) mspellChecker.SpellCheckTargets.Add(spellBinding) Me.LayoutRoot.Children.Add(mspellChecker) ' button click event Private Sub btnSpellCheck_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnSpellCheck.Click Try mspellChecker.SpellCheckDialog.StartupPosition = StartupPosition.Manual mspellChecker.SpellCheckDialog.Top = 50 mspellChecker.SpellCheckDialog.Left = 50 mspellChecker.SpellCheck() Catch ex As Exception ErrorHandler(ex) End Try End Sub the dictionaries are in teh clientbin folder on the website with the xap file clientbin dictionaries xxxxx.xap
Dim spellBinding As New Binding() spellBinding.Mode = BindingMode.TwoWay Dim propPathSpellBinding As New PropertyPath("Text") spellBinding.Path = propPathSpellBinding spellBinding.Source = Me.narrative mspellChecker = New XamSpellChecker() mspellChecker.DictionaryUri = New Uri("Dictionaries/english-generic-whole.dict", UriKind.Relative) mspellChecker.SpellCheckTargets.Add(spellBinding) Me.LayoutRoot.Children.Add(mspellChecker)
' button click event
Private Sub btnSpellCheck_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnSpellCheck.Click Try mspellChecker.SpellCheckDialog.StartupPosition = StartupPosition.Manual mspellChecker.SpellCheckDialog.Top = 50 mspellChecker.SpellCheckDialog.Left = 50 mspellChecker.SpellCheck() Catch ex As Exception ErrorHandler(ex) End Try End Sub the dictionaries are in teh clientbin folder on the website with the xap file clientbin dictionaries xxxxx.xap
Private Sub btnSpellCheck_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnSpellCheck.Click Try mspellChecker.SpellCheckDialog.StartupPosition = StartupPosition.Manual mspellChecker.SpellCheckDialog.Top = 50 mspellChecker.SpellCheckDialog.Left = 50 mspellChecker.SpellCheck() Catch ex As Exception ErrorHandler(ex) End Try End Sub
the dictionaries are in teh clientbin folder on the website with the xap file
clientbin
dictionaries
xxxxx.xap
Hi,
this is most probably an issue with downloading the dictionaries. You could add an event handler to DictionaryDownloadCompleted event and check the e.Error argument to see if something's wrong with downloading the dictionary.
Hope this helps,
HI,
I am following up on this forum thread, please let me know if you require further assistance.
Sincerely Matt Developer Support Engineer