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; }