终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RecipeSettingsView.xaml.cs 1.4 KiB

2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace BPASmartClient.DosingSystem.View
  17. {
  18. /// <summary>
  19. /// RecipeSettingsView.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class RecipeSettingsView : UserControl
  22. {
  23. public RecipeSettingsView()
  24. {
  25. InitializeComponent();
  26. //SetAlignment();
  27. }
  28. //public static void SetAlignment()
  29. //{
  30. // //获取系统是以Left-handed(true)还是Right-handed(false)
  31. // var ifLeft = SystemParameters.MenuDropAlignment;
  32. // if (ifLeft)
  33. // {
  34. // Console.WriteLine($"系统为左撇子,转换为右撇子。");
  35. // // change to false
  36. // var t = typeof(SystemParameters);
  37. // var field = t.GetField("_menuDropAlignment", BindingFlags.NonPublic | BindingFlags.Static);
  38. // field.SetValue(null, false);
  39. // ifLeft = SystemParameters.MenuDropAlignment;
  40. // }
  41. //}
  42. }
  43. }