2011-10-25 3 views

答えて

4

あなたはEnabledApplicationIdleDecectionModeを設定し、ルートフレームのObscuredUnobscuredイベント処理する必要があります:

Microsoft.Phone.Shell.PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Enabled; 
     var rootFrame = App.Current.RootVisual as PhoneApplicationFrame; 
     if(rootFrame != null) 
     { 
     rootFrame.Obscured += new EventHandler<ObscuredEventArgs>(rootFrame_Obscured); 
     rootFrame.Unobscured += new EventHandler(rootFrame_Unobscured); 
     } 

は、それが将来の参照のために、重要なコードサンプルを含めることをお勧めです。このarticle

+0

でより多くのを見て。リンクが死んでいるか、誰かがあなたの答えを読むと404'dになるかもしれません。 –

+0

@ClausJørgensenはコメントをいただきありがとうございます。私はいつも私の回答をもっと役立てたい) –

関連する問題