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.
我正在为油门控件制作滑块控件,当我用手指松开它时,我希望它能够回到起始位置。
我已经尝试过 LostFocus 但该事件需要您单击其他内容...而且可能有问题,因为我有两个滑块。
ManipulationEnded 事件应该可以解决问题
MSDN UIElement.ManipulationEnded 事件
您是否尝试过 PreviewMouseUp / PreviewStylusUp 事件?