我在 MainWindow 中定义了一个 ListBox 控件,并且它的 IsManipulationEnabled 属性设置为 true。我在 MainWindow 中定义了操作事件(OnManipulationStarting、OnManipulationInertiaStarting 和 OnManipulationDelta)。这里的目标是实现对 Listbox 控件的翻译,更像是翻转功能。
但是,这些事件从未被引发。我假设选择事件反过来吞噬了这些事件。当我改用 itemscontrol 时,它工作正常。但是使用 itemscontrol 的问题是我没有得到选择状态。另一种选择是使用原始触摸,但操作更容易。
为什么操作事件不会在 Listbox 上触发?
提前致谢!