|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Reflection;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
-
- namespace BPASmartClient.DosingSystem.View
- {
- /// <summary>
- /// RecipeSettingsView.xaml 的交互逻辑
- /// </summary>
- public partial class RecipeSettingsView : UserControl
- {
- public RecipeSettingsView()
- {
- InitializeComponent();
- //SetAlignment();
- }
-
- //public static void SetAlignment()
- //{
- // //获取系统是以Left-handed(true)还是Right-handed(false)
- // var ifLeft = SystemParameters.MenuDropAlignment;
-
- // if (ifLeft)
- // {
- // Console.WriteLine($"系统为左撇子,转换为右撇子。");
-
- // // change to false
- // var t = typeof(SystemParameters);
- // var field = t.GetField("_menuDropAlignment", BindingFlags.NonPublic | BindingFlags.Static);
- // field.SetValue(null, false);
-
- // ifLeft = SystemParameters.MenuDropAlignment;
- // }
- //}
- }
- }
|