I'm using this
embeded WPF's TextBox on my WinForms application.
It didn't worked until I set the Language
property to System.Windows.Markup.XmlLanguage.GetLanguage("en-US");
. It worked fine but only for the English-us language. I read the .NET language pack is needed to use others languages so I downloaded it from Microsoft site and the setup says I've already it installed on my machine.
For example it works:
box.Language = System.Windows.Markup.XmlLanguage.GetLanguage("en-US");
but this doesn't:
box.Language = System.Windows.Markup.XmlLanguage.GetLanguage("pt-BR");
I was using this
box.Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag));
until I noticied it doesn't works for other languages, only English.
I'm not posting a duplicate of my code because it same as the one in the accepted answer I linked except I have Language
property set.