Hi Telerik,
I am trying to add a custom dictionary to Rad Spell Check..
I created Test.txt file with few words and added to the project and loading to IsolatedStorage
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
isoStore.CreateDirectory("SpellCheck");
IsolatedStorageFileStream isoStream1 = new IsolatedStorageFileStream("Test.txt", FileMode.Create, isoStore);
isoStream1.Close();
Creating the Custom Dictionary..
RadIsolatedStorageCustomDictionary dictionary = new RadIsolatedStorageCustomDictionary(IsolatedStorageScope.Application, "Test.txt");
DocumentSpellChecker spellchecker = new DocumentSpellChecker(dictionary);
this._richTextBox.SpellChecker = spellchecker;
Adding Dictionary
Stream tdfFileStream = Application.GetResourceStream(new Uri("/MC.Client.Controls;component/Resources/en-US.tdf", UriKind.RelativeOrAbsolute)).Stream;
RadDictionary dictionary1 = new RadDictionary();
dictionary1.Load(tdfFileStream);
((DocumentSpellChecker)this._richTextBox.SpellChecker).AddDictionary(dictionary, CultureInfo.CurrentCulture);
its still showing the default dictionary and I did not find the words from Test.txt file.
Am I missing any thing.
Can some one please post a sample working project which loads custom dictionary file like (ex: CustomDictionary.txt )
Thanks.
Kotte.
I am trying to add a custom dictionary to Rad Spell Check..
I created Test.txt file with few words and added to the project and loading to IsolatedStorage
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
isoStore.CreateDirectory("SpellCheck");
IsolatedStorageFileStream isoStream1 = new IsolatedStorageFileStream("Test.txt", FileMode.Create, isoStore);
isoStream1.Close();
Creating the Custom Dictionary..
RadIsolatedStorageCustomDictionary dictionary = new RadIsolatedStorageCustomDictionary(IsolatedStorageScope.Application, "Test.txt");
DocumentSpellChecker spellchecker = new DocumentSpellChecker(dictionary);
this._richTextBox.SpellChecker = spellchecker;
Adding Dictionary
Stream tdfFileStream = Application.GetResourceStream(new Uri("/MC.Client.Controls;component/Resources/en-US.tdf", UriKind.RelativeOrAbsolute)).Stream;
RadDictionary dictionary1 = new RadDictionary();
dictionary1.Load(tdfFileStream);
((DocumentSpellChecker)this._richTextBox.SpellChecker).AddDictionary(dictionary, CultureInfo.CurrentCulture);
its still showing the default dictionary and I did not find the words from Test.txt file.
Am I missing any thing.
Can some one please post a sample working project which loads custom dictionary file like (ex: CustomDictionary.txt )
Thanks.
Kotte.