add EnumDataProvider
This commit is contained in:
1 parent
665ee3866e
commit
a4e44b75d8
24 files changed
+2480
-82
No files matched your search
@@ -16,7 +16,7 @@ namespace HandyControlDemo.UserControl
|
||||
if (sender is TagPanel panel)
|
||||
{
|
||||
var tag = new Tag();
|
||||
LangDecorator.SetLang(tag, ContentProperty, LangKeys.SubTitle);
|
||||
LangProvider.SetLang(tag, ContentProperty, LangKeys.SubTitle);
|
||||
panel.Children.Add(tag);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace HandyControlDemo.UserControl
|
||||
PopupConfig.IsOpen = false;
|
||||
if (tag.Equals(GlobalData.Config.Lang)) return;
|
||||
ConfigHelper.Instance.SetLang(tag);
|
||||
LangDecorator.Culture = new CultureInfo(tag);
|
||||
LangProvider.Culture = new CultureInfo(tag);
|
||||
Messenger.Default.Send<object>(null, "LangUpdated");
|
||||
|
||||
GlobalData.Config.Lang = tag;
|
||||
|
||||
Reference in new issue
Block a user