终端一体化运控平台
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.
 
 
 

35 lines
1.0 KiB

  1. using System.Windows.Controls;
  2. namespace BPASmartClient.FoodStationTest.View
  3. {
  4. /// <summary>
  5. /// RecipeSettingsView.xaml 的交互逻辑
  6. /// </summary>
  7. public partial class RecipeSettingsView : UserControl
  8. {
  9. public RecipeSettingsView()
  10. {
  11. InitializeComponent();
  12. //SetAlignment();
  13. }
  14. //public static void SetAlignment()
  15. //{
  16. // //获取系统是以Left-handed(true)还是Right-handed(false)
  17. // var ifLeft = SystemParameters.MenuDropAlignment;
  18. // if (ifLeft)
  19. // {
  20. // Console.WriteLine($"系统为左撇子,转换为右撇子。");
  21. // // change to false
  22. // var t = typeof(SystemParameters);
  23. // var field = t.GetField("_menuDropAlignment", BindingFlags.NonPublic | BindingFlags.Static);
  24. // field.SetValue(null, false);
  25. // ifLeft = SystemParameters.MenuDropAlignment;
  26. // }
  27. //}
  28. }
  29. }