Hi,
I get this error when I try to set dictionaries as suggested (in my C#/WPF code) -
- Code: Select all
Trying to set a preference of type LIST to value of type NULL
This is what I tried -
- Code: Select all
List<string> spellCheckDictionaries = new List<string> {
"en-GB"
};
if (!browserRequestContext.SetPreference("spellcheck.dictionaries", spellCheckDictionaries, out error))
{
_log.Error($"Failed to enable spell check on the browser. Error is {error}");
}
But, when I do
browserRequestContext.GetAllPreferences(true), I get 26 preferences back, one of which is
spellcheck. And, it seems to have the
dictionaries key in there.
So, how do I set multiple language specific dictionaries such that it gets set and also download as a
.bdic file in the Cache\Dictionaries folder ?