lang support for binding

This commit is contained in:
NaBian committed 2020-04-18 16:42:02 +08:00
1 parent 95f35c7366
commit 1680858455
20 files changed
+274 -117

No files matched your search

@@ -10,6 +10,7 @@ using System.Windows.Media.Animation;
using System.Windows.Navigation;
using HandyControl.Controls;
using HandyControl.Data;
using HandyControl.Properties.Langs;
namespace HandyControl.Tools
{
@@ -37,13 +38,11 @@ namespace HandyControl.Tools
}
}
public void SetSystemVersionInfo(SystemVersionInfo info)
{
BlurWindow.SystemVersionInfo = info;
}
public void SetSystemVersionInfo(SystemVersionInfo info) => BlurWindow.SystemVersionInfo = info;
public void SetLang(string lang)
{
LangDecorator.Culture = new CultureInfo(lang);
Application.Current.Dispatcher.Thread.CurrentUICulture = new CultureInfo(lang);
Lang = XmlLanguage.GetLanguage(lang);
}