How to perform Async Task in Windows phone app

Asynchronous programming in Windows phone application adds two new keywords: async and await. This new feature is a simplified way of improving the performance of the app and making it more responsive to the user without the complexity of writing code to use multiple threads.

You can easily understand its use by the following example given below.

 

Example:

When you are retrieving data from a big database having hundreds of entries it may potentially take a second or two which adds to a degree of latency. So as to avoid it we may call this method under async task to avoid the delay.

 


 

So while the database entries are loading in the background you can perform any other function through your application at that moment of time.

Chetan Gulati

Currently am doing B TECH in IT from Delhi Technological University. App development is my passion. Believe in quality rather than quantity.

Read more:
How to create your first Windows Phone app
How to change the App name and Tile name of your Windows phone app
Data binding in Windows Phone app – One way binding
Close