update demo
This commit is contained in:
1 parent
1680858455
commit
dc64d5cacb
22 files changed
+111
-14
No files matched your search
@@ -897,6 +897,15 @@ namespace HandyControlDemo.Properties.Langs {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 查找类似 {0} 的本地化字符串。 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string LangComment {
|
||||
get {
|
||||
return ResourceManager.GetString("LangComment", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 列表框 的本地化字符串。
|
||||
/// </summary>
|
||||
|
||||
@@ -747,4 +747,7 @@
|
||||
<data name="TextDialogInControl" xml:space="preserve">
|
||||
<value>TextDialog(In control)</value>
|
||||
</data>
|
||||
<data name="LangComment" xml:space="preserve">
|
||||
<value>Looks up a localized string similar to "{0}".</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -747,4 +747,7 @@
|
||||
<data name="TextDialogInControl" xml:space="preserve">
|
||||
<value>TextDialog(In control)</value>
|
||||
</data>
|
||||
<data name="LangComment" xml:space="preserve">
|
||||
<value>Looks up a localized string similar to "{0}".</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -747,4 +747,7 @@
|
||||
<data name="TextDialogInControl" xml:space="preserve">
|
||||
<value>TextDialog(In control)</value>
|
||||
</data>
|
||||
<data name="LangComment" xml:space="preserve">
|
||||
<value>Looks up a localized string similar to "{0}".</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -747,4 +747,7 @@
|
||||
<data name="TextDialogInControl" xml:space="preserve">
|
||||
<value>TextDialog(In control)</value>
|
||||
</data>
|
||||
<data name="LangComment" xml:space="preserve">
|
||||
<value>Looks up a localized string similar to "{0}".</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -747,4 +747,7 @@
|
||||
<data name="TextDialogInControl" xml:space="preserve">
|
||||
<value>文本对话框(控件中)</value>
|
||||
</data>
|
||||
<data name="LangComment" xml:space="preserve">
|
||||
<value>查找类似 {0} 的本地化字符串。</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -26,6 +26,8 @@ namespace HandyControlDemo.Properties.Langs
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetLang(string key) => Lang.ResourceManager.GetString(key, Culture);
|
||||
|
||||
public static void SetLang(DependencyObject dependencyObject, DependencyProperty dependencyProperty, string key) =>
|
||||
BindingOperations.SetBinding(dependencyObject, dependencyProperty, new Binding(key)
|
||||
{
|
||||
@@ -128,6 +130,7 @@ namespace HandyControlDemo.Properties.Langs
|
||||
OnPropertyChanged(nameof(InteractiveDialog));
|
||||
OnPropertyChanged(nameof(IsNotPhone));
|
||||
OnPropertyChanged(nameof(Label));
|
||||
OnPropertyChanged(nameof(LangComment));
|
||||
OnPropertyChanged(nameof(ListBox));
|
||||
OnPropertyChanged(nameof(ListView));
|
||||
OnPropertyChanged(nameof(Loading));
|
||||
@@ -712,6 +715,11 @@ namespace HandyControlDemo.Properties.Langs
|
||||
/// </summary>
|
||||
public string Label => Lang.Label;
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 查找类似 {0} 的本地化字符串。 的本地化字符串。
|
||||
/// </summary>
|
||||
public string LangComment => Lang.LangComment;
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 列表框 的本地化字符串。
|
||||
/// </summary>
|
||||
@@ -1771,6 +1779,11 @@ namespace HandyControlDemo.Properties.Langs
|
||||
/// </summary>
|
||||
public static string Label = nameof(Label);
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 查找类似 {0} 的本地化字符串。 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string LangComment = nameof(LangComment);
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 列表框 的本地化字符串。
|
||||
/// </summary>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
{
|
||||
langDic[item] =
|
||||
@$"/// <summary>
|
||||
/// 查找类似 {Lang.ResourceManager.GetString(item, Lang.Culture)} 的本地化字符串。
|
||||
/// {string.Format(Lang.LangComment, Lang.ResourceManager.GetString(item, Lang.Culture))}
|
||||
/// </summary>";
|
||||
}
|
||||
#>
|
||||
@@ -45,6 +45,8 @@ namespace HandyControlDemo.Properties.Langs
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetLang(string key) => Lang.ResourceManager.GetString(key, Culture);
|
||||
|
||||
public static void SetLang(DependencyObject dependencyObject, DependencyProperty dependencyProperty, string key) =>
|
||||
BindingOperations.SetBinding(dependencyObject, dependencyProperty, new Binding(key)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user