update demo
This commit is contained in:
1 parent
1680858455
commit
dc64d5cacb
22 files changed
+111
-14
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"title": "Styles",
|
"title": "Styles",
|
||||||
|
"selectedIndex": -1,
|
||||||
"demoItemList": [
|
"demoItemList": [
|
||||||
[ "Brush", "BrushDemoCtl", "Brush_16x", "" ],
|
[ "Brush", "BrushDemoCtl", "Brush_16x", "" ],
|
||||||
[ "Button", "ButtonDemoCtl", "ButtonClick_16x", "" ],
|
[ "Button", "ButtonDemoCtl", "ButtonClick_16x", "" ],
|
||||||
@@ -30,12 +31,13 @@
|
|||||||
[ "ToolBar", "ToolBarDemoCtl", "ToolBar_16x", "" ],
|
[ "ToolBar", "ToolBarDemoCtl", "ToolBar_16x", "" ],
|
||||||
[ "Border", "BorderDemoCtl", "BorderElement_16x", "" ],
|
[ "Border", "BorderDemoCtl", "BorderElement_16x", "" ],
|
||||||
[ "Label", "LabelDemoCtl", "Label_16x", "" ],
|
[ "Label", "LabelDemoCtl", "Label_16x", "" ],
|
||||||
[ "Frame", "FrameDemoCtl", "frame_16xLG", "1" ],
|
[ "Frame", "FrameDemoCtl", "frame_16xLG", "1" ],
|
||||||
[ "Window", "NativeWindowDemoCtl", "WindowsForm_16x", "1" ]
|
[ "Window", "NativeWindowDemoCtl", "WindowsForm_16x", "1" ]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Controls",
|
"title": "Controls",
|
||||||
|
"selectedIndex": 0,
|
||||||
"demoItemList": [
|
"demoItemList": [
|
||||||
[ "FloatingBlock", "FloatingBlockDemoCtl", "thumbs_up", "" ],
|
[ "FloatingBlock", "FloatingBlockDemoCtl", "thumbs_up", "" ],
|
||||||
[ "ImageBlock", "ImageBlockDemoCtl", "ImageStack_16x", "" ],
|
[ "ImageBlock", "ImageBlockDemoCtl", "ImageStack_16x", "" ],
|
||||||
@@ -104,9 +106,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Tools",
|
"title": "Tools",
|
||||||
|
"selectedIndex": 0,
|
||||||
"demoItemList": [
|
"demoItemList": [
|
||||||
[ "HatchBrushGenerator", "HatchBrushGeneratorDemoCtl", "DataGenerator_16x", "" ],
|
[ "HatchBrushGenerator", "HatchBrushGeneratorDemoCtl", "DataGenerator_16x", "" ],
|
||||||
[ "Morphing Animation", "GeometryAnimationDemoCtl", "Animation_16x", "" ],
|
[ "Morphing_Animation", "GeometryAnimationDemoCtl", "Animation_16x", "" ],
|
||||||
[ "Effects", "EffectsDemoCtl", "Effects_16x", "" ]
|
[ "Effects", "EffectsDemoCtl", "Effects_16x", "" ]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,5 +48,7 @@
|
|||||||
|
|
||||||
public static readonly string DialogContainer = nameof(DialogContainer);
|
public static readonly string DialogContainer = nameof(DialogContainer);
|
||||||
|
|
||||||
|
public static readonly string LangUpdated = nameof(LangUpdated);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,8 @@ var messageList = new List<string>
|
|||||||
"GlowWindow",
|
"GlowWindow",
|
||||||
"NativeCommonWindow",
|
"NativeCommonWindow",
|
||||||
"NavigationWindow",
|
"NavigationWindow",
|
||||||
"DialogContainer"
|
"DialogContainer",
|
||||||
|
"LangUpdated"
|
||||||
};
|
};
|
||||||
#>
|
#>
|
||||||
namespace HandyControlDemo.Data
|
namespace HandyControlDemo.Data
|
||||||
|
|||||||
@@ -897,6 +897,15 @@ namespace HandyControlDemo.Properties.Langs {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 查找类似 {0} 的本地化字符串。 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public static string LangComment {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("LangComment", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 列表框 的本地化字符串。
|
/// 查找类似 列表框 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -747,4 +747,7 @@
|
|||||||
<data name="TextDialogInControl" xml:space="preserve">
|
<data name="TextDialogInControl" xml:space="preserve">
|
||||||
<value>TextDialog(In control)</value>
|
<value>TextDialog(In control)</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LangComment" xml:space="preserve">
|
||||||
|
<value>Looks up a localized string similar to "{0}".</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -747,4 +747,7 @@
|
|||||||
<data name="TextDialogInControl" xml:space="preserve">
|
<data name="TextDialogInControl" xml:space="preserve">
|
||||||
<value>TextDialog(In control)</value>
|
<value>TextDialog(In control)</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LangComment" xml:space="preserve">
|
||||||
|
<value>Looks up a localized string similar to "{0}".</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -747,4 +747,7 @@
|
|||||||
<data name="TextDialogInControl" xml:space="preserve">
|
<data name="TextDialogInControl" xml:space="preserve">
|
||||||
<value>TextDialog(In control)</value>
|
<value>TextDialog(In control)</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LangComment" xml:space="preserve">
|
||||||
|
<value>Looks up a localized string similar to "{0}".</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -747,4 +747,7 @@
|
|||||||
<data name="TextDialogInControl" xml:space="preserve">
|
<data name="TextDialogInControl" xml:space="preserve">
|
||||||
<value>TextDialog(In control)</value>
|
<value>TextDialog(In control)</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LangComment" xml:space="preserve">
|
||||||
|
<value>Looks up a localized string similar to "{0}".</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -747,4 +747,7 @@
|
|||||||
<data name="TextDialogInControl" xml:space="preserve">
|
<data name="TextDialogInControl" xml:space="preserve">
|
||||||
<value>文本对话框(控件中)</value>
|
<value>文本对话框(控件中)</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LangComment" xml:space="preserve">
|
||||||
|
<value>查找类似 {0} 的本地化字符串。</value>
|
||||||
|
</data>
|
||||||
</root>
|
</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) =>
|
public static void SetLang(DependencyObject dependencyObject, DependencyProperty dependencyProperty, string key) =>
|
||||||
BindingOperations.SetBinding(dependencyObject, dependencyProperty, new Binding(key)
|
BindingOperations.SetBinding(dependencyObject, dependencyProperty, new Binding(key)
|
||||||
{
|
{
|
||||||
@@ -128,6 +130,7 @@ namespace HandyControlDemo.Properties.Langs
|
|||||||
OnPropertyChanged(nameof(InteractiveDialog));
|
OnPropertyChanged(nameof(InteractiveDialog));
|
||||||
OnPropertyChanged(nameof(IsNotPhone));
|
OnPropertyChanged(nameof(IsNotPhone));
|
||||||
OnPropertyChanged(nameof(Label));
|
OnPropertyChanged(nameof(Label));
|
||||||
|
OnPropertyChanged(nameof(LangComment));
|
||||||
OnPropertyChanged(nameof(ListBox));
|
OnPropertyChanged(nameof(ListBox));
|
||||||
OnPropertyChanged(nameof(ListView));
|
OnPropertyChanged(nameof(ListView));
|
||||||
OnPropertyChanged(nameof(Loading));
|
OnPropertyChanged(nameof(Loading));
|
||||||
@@ -712,6 +715,11 @@ namespace HandyControlDemo.Properties.Langs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string Label => Lang.Label;
|
public string Label => Lang.Label;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 查找类似 {0} 的本地化字符串。 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public string LangComment => Lang.LangComment;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 列表框 的本地化字符串。
|
/// 查找类似 列表框 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -1771,6 +1779,11 @@ namespace HandyControlDemo.Properties.Langs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static string Label = nameof(Label);
|
public static string Label = nameof(Label);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 查找类似 {0} 的本地化字符串。 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public static string LangComment = nameof(LangComment);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 列表框 的本地化字符串。
|
/// 查找类似 列表框 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
{
|
{
|
||||||
langDic[item] =
|
langDic[item] =
|
||||||
@$"/// <summary>
|
@$"/// <summary>
|
||||||
/// 查找类似 {Lang.ResourceManager.GetString(item, Lang.Culture)} 的本地化字符串。
|
/// {string.Format(Lang.LangComment, Lang.ResourceManager.GetString(item, Lang.Culture))}
|
||||||
/// </summary>";
|
/// </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) =>
|
public static void SetLang(DependencyObject dependencyObject, DependencyProperty dependencyProperty, string key) =>
|
||||||
BindingOperations.SetBinding(dependencyObject, dependencyProperty, new Binding(key)
|
BindingOperations.SetBinding(dependencyObject, dependencyProperty, new Binding(key)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -381,7 +381,8 @@ namespace HandyControlDemo.Service
|
|||||||
{
|
{
|
||||||
Key = titleKey,
|
Key = titleKey,
|
||||||
Title = title,
|
Title = title,
|
||||||
DemoItemList = list
|
DemoItemList = list,
|
||||||
|
SelectedIndex = (int) item.selectedIndex
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
|
using GalaSoft.MvvmLight.Messaging;
|
||||||
using HandyControl.Data;
|
using HandyControl.Data;
|
||||||
using HandyControl.Tools;
|
using HandyControl.Tools;
|
||||||
using HandyControlDemo.Data;
|
using HandyControlDemo.Data;
|
||||||
@@ -24,6 +25,7 @@ namespace HandyControlDemo.UserControl
|
|||||||
if (tag.Equals(GlobalData.Config.Lang)) return;
|
if (tag.Equals(GlobalData.Config.Lang)) return;
|
||||||
ConfigHelper.Instance.SetLang(tag);
|
ConfigHelper.Instance.SetLang(tag);
|
||||||
LangDecorator.Culture = new CultureInfo(tag);
|
LangDecorator.Culture = new CultureInfo(tag);
|
||||||
|
Messenger.Default.Send<object>(null, "LangUpdated");
|
||||||
|
|
||||||
GlobalData.Config.Lang = tag;
|
GlobalData.Config.Lang = tag;
|
||||||
GlobalData.Save();
|
GlobalData.Save();
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ using GalaSoft.MvvmLight.CommandWpf;
|
|||||||
using GalaSoft.MvvmLight.Messaging;
|
using GalaSoft.MvvmLight.Messaging;
|
||||||
using HandyControl.Controls;
|
using HandyControl.Controls;
|
||||||
using HandyControlDemo.Data;
|
using HandyControlDemo.Data;
|
||||||
|
using HandyControlDemo.Properties.Langs;
|
||||||
using HandyControlDemo.Service;
|
using HandyControlDemo.Service;
|
||||||
using HandyControlDemo.Tools;
|
using HandyControlDemo.Tools;
|
||||||
using HandyControlDemo.UserControl;
|
using HandyControlDemo.UserControl;
|
||||||
@@ -56,6 +57,11 @@ namespace HandyControlDemo.ViewModel
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Messenger.Default.Register<object>(this, MessageToken.LangUpdated, obj =>
|
||||||
|
{
|
||||||
|
ContentTitle = LangDecorator.GetLang(DemoItemCurrent.Name);
|
||||||
|
});
|
||||||
|
|
||||||
DataList = dataService.GetDemoDataList();
|
DataList = dataService.GetDemoDataList();
|
||||||
DemoInfoList = dataService.GetDemoInfo();
|
DemoInfoList = dataService.GetDemoInfo();
|
||||||
}
|
}
|
||||||
@@ -141,16 +147,20 @@ namespace HandyControlDemo.ViewModel
|
|||||||
if (e.AddedItems[0] is DemoItemModel item)
|
if (e.AddedItems[0] is DemoItemModel item)
|
||||||
{
|
{
|
||||||
if (Equals(DemoItemCurrent, item)) return;
|
if (Equals(DemoItemCurrent, item)) return;
|
||||||
|
SwitchDemo(item);
|
||||||
DemoItemCurrent = item;
|
|
||||||
ContentTitle = item.Name;
|
|
||||||
var obj = AssemblyHelper.ResolveByKey(item.TargetCtlName);
|
|
||||||
var ctl = obj ?? AssemblyHelper.CreateInternalInstance($"UserControl.{item.TargetCtlName}");
|
|
||||||
Messenger.Default.Send(ctl is IFull, MessageToken.FullSwitch);
|
|
||||||
Messenger.Default.Send(ctl, MessageToken.LoadShowContent);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void SwitchDemo(DemoItemModel item)
|
||||||
|
{
|
||||||
|
DemoItemCurrent = item;
|
||||||
|
ContentTitle = LangDecorator.GetLang(item.Name);
|
||||||
|
var obj = AssemblyHelper.ResolveByKey(item.TargetCtlName);
|
||||||
|
var ctl = obj ?? AssemblyHelper.CreateInternalInstance($"UserControl.{item.TargetCtlName}");
|
||||||
|
Messenger.Default.Send(ctl is IFull, MessageToken.FullSwitch);
|
||||||
|
Messenger.Default.Send(ctl, MessageToken.LoadShowContent);
|
||||||
|
}
|
||||||
|
|
||||||
private void OpenPracticalDemo()
|
private void OpenPracticalDemo()
|
||||||
{
|
{
|
||||||
Messenger.Default.Send<object>(null, MessageToken.ClearLeftSelected);
|
Messenger.Default.Send<object>(null, MessageToken.ClearLeftSelected);
|
||||||
|
|||||||
@@ -249,6 +249,15 @@ namespace HandyControl.Properties.Langs {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 查找类似 {0} 的本地化字符串。 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public static string LangComment {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("LangComment", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 下一页 的本地化字符串。
|
/// 查找类似 下一页 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -228,4 +228,7 @@
|
|||||||
<data name="Find" xml:space="preserve">
|
<data name="Find" xml:space="preserve">
|
||||||
<value>Find</value>
|
<value>Find</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LangComment" xml:space="preserve">
|
||||||
|
<value>Looks up a localized string similar to "{0}".</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -228,4 +228,7 @@
|
|||||||
<data name="Find" xml:space="preserve">
|
<data name="Find" xml:space="preserve">
|
||||||
<value>Find</value>
|
<value>Find</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LangComment" xml:space="preserve">
|
||||||
|
<value>Looks up a localized string similar to "{0}".</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -228,4 +228,7 @@
|
|||||||
<data name="Find" xml:space="preserve">
|
<data name="Find" xml:space="preserve">
|
||||||
<value>Find</value>
|
<value>Find</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LangComment" xml:space="preserve">
|
||||||
|
<value>Looks up a localized string similar to "{0}".</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -228,4 +228,7 @@
|
|||||||
<data name="Find" xml:space="preserve">
|
<data name="Find" xml:space="preserve">
|
||||||
<value>Find</value>
|
<value>Find</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LangComment" xml:space="preserve">
|
||||||
|
<value>Looks up a localized string similar to "{0}".</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -228,4 +228,7 @@
|
|||||||
<data name="Find" xml:space="preserve">
|
<data name="Find" xml:space="preserve">
|
||||||
<value>查找</value>
|
<value>查找</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LangComment" xml:space="preserve">
|
||||||
|
<value>查找类似 {0} 的本地化字符串。</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -26,6 +26,8 @@ namespace HandyControl.Properties.Langs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GetLang(string key) => Lang.ResourceManager.GetString(key, Culture);
|
||||||
|
|
||||||
public static void SetLang(DependencyObject dependencyObject, DependencyProperty dependencyProperty, string key) =>
|
public static void SetLang(DependencyObject dependencyObject, DependencyProperty dependencyProperty, string key) =>
|
||||||
BindingOperations.SetBinding(dependencyObject, dependencyProperty, new Binding(key)
|
BindingOperations.SetBinding(dependencyObject, dependencyProperty, new Binding(key)
|
||||||
{
|
{
|
||||||
@@ -56,6 +58,7 @@ namespace HandyControl.Properties.Langs
|
|||||||
OnPropertyChanged(nameof(Interval30s));
|
OnPropertyChanged(nameof(Interval30s));
|
||||||
OnPropertyChanged(nameof(Interval5m));
|
OnPropertyChanged(nameof(Interval5m));
|
||||||
OnPropertyChanged(nameof(IsNecessary));
|
OnPropertyChanged(nameof(IsNecessary));
|
||||||
|
OnPropertyChanged(nameof(LangComment));
|
||||||
OnPropertyChanged(nameof(NextPage));
|
OnPropertyChanged(nameof(NextPage));
|
||||||
OnPropertyChanged(nameof(No));
|
OnPropertyChanged(nameof(No));
|
||||||
OnPropertyChanged(nameof(OutOfRange));
|
OnPropertyChanged(nameof(OutOfRange));
|
||||||
@@ -179,6 +182,11 @@ namespace HandyControl.Properties.Langs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string IsNecessary => Lang.IsNecessary;
|
public string IsNecessary => Lang.IsNecessary;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 查找类似 {0} 的本地化字符串。 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public string LangComment => Lang.LangComment;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 下一页 的本地化字符串。
|
/// 查找类似 下一页 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -373,6 +381,11 @@ namespace HandyControl.Properties.Langs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static string IsNecessary = nameof(IsNecessary);
|
public static string IsNecessary = nameof(IsNecessary);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 查找类似 {0} 的本地化字符串。 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public static string LangComment = nameof(LangComment);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 下一页 的本地化字符串。
|
/// 查找类似 下一页 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
{
|
{
|
||||||
langDic[item] =
|
langDic[item] =
|
||||||
@$"/// <summary>
|
@$"/// <summary>
|
||||||
/// 查找类似 {Lang.ResourceManager.GetString(item, Lang.Culture)} 的本地化字符串。
|
/// {string.Format(Lang.LangComment, Lang.ResourceManager.GetString(item, Lang.Culture))}
|
||||||
/// </summary>";
|
/// </summary>";
|
||||||
}
|
}
|
||||||
#>
|
#>
|
||||||
@@ -45,6 +45,8 @@ namespace HandyControl.Properties.Langs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GetLang(string key) => Lang.ResourceManager.GetString(key, Culture);
|
||||||
|
|
||||||
public static void SetLang(DependencyObject dependencyObject, DependencyProperty dependencyProperty, string key) =>
|
public static void SetLang(DependencyObject dependencyObject, DependencyProperty dependencyProperty, string key) =>
|
||||||
BindingOperations.SetBinding(dependencyObject, dependencyProperty, new Binding(key)
|
BindingOperations.SetBinding(dependencyObject, dependencyProperty, new Binding(key)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user