is there a way to detect if application is idle?
Answer / Dheeraj Kumar Jatav
Yes, you can detect if an application is in the background (idle) by handling the Suspending event on the Application class. This event is raised when your application is about to be suspended due to low memory conditions or user interaction with another app:
```csharp
public App()
{
this.Suspending += OnSuspending;
}
private void OnSuspending(object sender, SuspendingEventArgs e)
{
// Handle application suspension heren"
}
```
This event is only available in Silverlight applications. In XAML applications, you can use the DispatcherUnhandledException event to handle exceptions that occur while your app is idle.n
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me Will TextTrimming property be available on TextBlock?
Tell me is wcf supported in windows phone?
How to dismiss the SIP programmatically?
What content can I share/save?
Will texttrimming property be available on textblock?
Explain about windows phone web browser?
Tell me is there any internal page notification that it receives to detect a phone call?
Tell me can I write multi-player games using wi-fi or blue tooth in the device.?
How to save Silverlight UIElements into an image?
Where is httputility class, since there is no system.windows.browser namespace?
Suppose I am hitting System.InvalidOperationException in the Navigate method of the WebBrowserControl. What gives?
Is wcf supported in windows phone?