Is it possible to get a popup to ignore MenuDropAlignment in a WPF / Touch app?

前端 未结 5 2066
终归单人心
终归单人心 2021-02-04 05:26

As a bit of background - Windows has a facility for Touch/TabletPCs whereby it shifts the position of popups/menus depending on your \"handedness\" (to prevent the menu appearin

5条回答
  •  孤城傲影
    2021-02-04 06:03

    Set it to regular mode for your whole application:

    FieldInfo fi = typeof(SystemParameters).GetField("_menuDropAlignment",
       BindingFlags.NonPublic | BindingFlags.Static);
    
    fi.SetValue(null, false);
    

提交回复
热议问题