This question is locked. New answers and comments are not allowed.
I have several dictionaries stored outside of the XAP file and I load the approriate one manually. I did this in order to minimize the size of the xap.
To load the dictionary, I use the 'WebClient()' class and do the following in OpenReadCompletedEventHandler
The dictionary is loading properly, however adding to the dictionary only works for the session, which makes sense. So my question is, how do I sync the .tdf file when the user selects "Add to dictionary". I am able to capture the "DataChanged" event, so I guess in that event handler I just need to pass the dictionary ( or even better just the word) to my webservice and overwrite the existing .tdf. How do I do that?
Also I realize this means all users will be editing the same .tdf, and that is not ideal, but right now it doesn't work at all and I just want to get it working. I am still on the latest SL4 build.
To load the dictionary, I use the 'WebClient()' class and do the following in OpenReadCompletedEventHandler
System.IO.Stream st = e.Result;
dictionary =
new
RadDictionary();
dictionary.Load(st);
((DocumentSpellChecker)
this
.txtDesc.SpellChecker).AddDictionary(dictionary, CultureInfo.CurrentCulture);
The dictionary is loading properly, however adding to the dictionary only works for the session, which makes sense. So my question is, how do I sync the .tdf file when the user selects "Add to dictionary". I am able to capture the "DataChanged" event, so I guess in that event handler I just need to pass the dictionary ( or even better just the word) to my webservice and overwrite the existing .tdf. How do I do that?
Also I realize this means all users will be editing the same .tdf, and that is not ideal, but right now it doesn't work at all and I just want to get it working. I am still on the latest SL4 build.