Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们已经DataGrid成功地将我们的“-90”旋转了。但是,箭头键保持未旋转。
DataGrid
例如,当我们按下向上箭头键时,它会向左移动,而不是向上,等等。
我们如何旋转箭头键来反映屏幕的实际方向?
非常感谢您的帮助。
无法想象您旋转了 dataGrid 是为了什么,但您可以捕获 keypress 事件并将其转换为另一个按键(例如,左转换为向上),就像在这个线程中一样:
模拟按键 c#