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.
按下后退按钮或按下开始按钮后,进程能否继续。我正在使用 GeoCoordinateWatcher 的位置更改事件。在按下返回或开始按钮后,我仍想处理此事件。我能怎么做?
点击开始按钮后,进程将暂停,您可以在下一次启动时开始。意思是您可以覆盖后键过程。
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { //cancels the navigation. e.Cancel = true; }