【问题标题】:WinRT: How to determine current Mouse/Pointer positionWinRT:如何确定当前鼠标/指针位置
【发布时间】:2012-11-15 14:41:19
【问题描述】:

在 WinRT 中,如果 ItemsSource 被分组,则无法重新排序 GridView 的项目。我决定通过使用GridView 的拖放功能来解决这个问题。在GridViewDrop 事件处理程序上,我需要找到当前鼠标(或指针)位置以确定我拖动的项目被拖放到的确切对象(或最近的对象)。

那么有什么办法可以拿到这个位置呢?

【问题讨论】:

    标签: windows-8 microsoft-metro winrt-xaml


    【解决方案1】:

    您可以使用DragEventArgs 获取位置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-10-15
      • 2011-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-08
      • 2016-04-10
      • 1970-01-01
      相关资源
      最近更新 更多