Tag: window 7 phone application
-
Code to select photo on Windows Phone 7
In this post we will see how could we select a photo saved on device and bind it as source of image control on our application. Expected Output To work with photo on device you need to work with Choosers. To work with Choosers you need to add Microsoft.Phone.Tasks namespaces. PhotoChooserTask class allows us…
-
Reading coordinate values using Accelerometer API in Windows Phone 7
In this post we will see how to read different axis values using Accelerometer API. To work with Accelerometer API first you need to add reference of Microsoft.Devices.Sensors Then below namespace, Now to capture X Axis, Y Axis and Z Axis value you need to follow below steps Step 1 Create task object of Accelerometer…
-
Code to Send SMS in Windows Phone 7
Launchers are used to perform task provided by phone operating system. Sending SMS is feature of Windows phone operating system and can be used by Launcher API. SmsCompseTask launcher is used to send SMS. This task class is defined as below, To work with SmsComposeTask, first you need to add namespace of Microsoft.Phone.Task Then create…
-
Protecting password or any data in Windows Phone 7 using Data Protection API
There may be many scenarios, when you need to save data in protected form for your application in isolated storage. Of course you have an option To encrypt the data with some encryption algorithm Save in the isolated storage Problem with above approach is either you will have to store the key in isolated storage…
-
Global Application Bar in Windows Phone 7
In a Windows Phone 7 application, Application Bar is very useful. With as assumption that, you know what is Application Bar? I will discuss with you How Application Bar can be used as static resource? How to make Application Bar as global resource? How to use same Application Bar in multiple pages? Designing Global Application…
-
System Tray ProgressIndicator in Windows Phone 7.5 or Mango phone
Windows Phone 7.5 (Mango) provides a Progress Indicator on System Tray to show progress of async operation. ProgressIndicator is a dependency object and can be data bind to the System Tray. ProgressIndicator class is defined as below, Using ProgressIndicator To use ProgressIndicator, first you need to add the namespace, And then create it as below,…
-
Local Database application for windows Phone
Version: Windows Phone 7.1, Mango, 7.5 [at time of writing this post this post was applicable to said versions] Local data base support in windows phone 7.1 is enabled via LINQ to SQL. LINQ to SQL enables application to use isolated storage as database. Each application is having own isolated storage and LINQ to SQL…
-
Fetching selected value from List Box in Silverlight
Let us say you have a list box as below. You have a requirement that on click of button fetch value of the same row button belongs to. For example if you are clicking second cross, you should able to fetch value Pinal, SqlServer , 500 from the list box. In above list box There…
-
Windows Phone 7.5 or Mango Phone Application Performance analysis
When you create an application along with killer user interface, you ought to consider various performance parameters of your application as well. There are certain eligibility performances criteria, your application must pass to be accepted in the Marketplace. These criteria may check your application 1. For maximum memory usage 2. Launching time of your application…
-
Context switching in Windows Phone 7
Note : This post has not adhered to the best practice to acheive Context Switching….. This is not best practice Very first let us understand what I mean by word “Context Switching “here? Context switching in context of this post is essentially, navigate back to the page from where application got deactivated. There are three…