WP7

How to convert Octal Number to Decimal , HexaDecimal and Binary Number using C# ?

This is my third post of the series of the Number Converter for Windows Phone 7 sourcecode . In my previous posts i talked about

In this blog post , i describe or share the code  that converts a Octal Number to Decimal , HexaDecimal and Binary Number using C# in Windows Phone 7 .

public static class OctalConverter { /// <summary> /// Octals to binary. /// </summary> /// <param name="OctalNumber">The octal number.</param> /// <returns></returns>

read more

How to select a Photo from the Windows Phone Media Library using C# ?

Sometimes , the windows phone developers might be required to select the photo or image from the Windows Phone Media library in their Windows phone App .

A typically example would be uploading the profile picture of the facebook profile from a facebook App etc …

The Windows Phone 7 SDK provides the PhotoChooserTask chooser which allows the users to choose a picture from the album photo gallery or the Media library .

The Chooser “PhotoChooserTask” is defined in the namespace using Microsoft.Phone.Tasks .

To select the photo from the media library , just create an instance of the PhotoChooserTask class and call the Show Method .

The Completed event is called when a picture is selected from the the photo library and you can use one of the parameter PhotoResult to get the selected picture from your photo album.

using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using

read more

Number Converter for WP7 – How to convert Decimal Number to Binary , HexaDecimal and Octal Number using C# ?

In this blog post and in the upcoming blog posts, i will share the source code of my small App for Windows Phone 7 (Number Converter for WP7).

The Number Converter for WP7 has got 50+ downloads. Although it’s not a big number, but for the first App that was developed in less than an hour is a great motivation for building more Windows Phone 7 Apps.

This Blog post describes how to convert a Decimal Number to Binary, Hexadecimal and Octal Number using C#.

In most of the cases, the built in functions of the .NET framework is used.

The most common function used to convert the numbers are Convert.ToString () and ToString with “X” as parameter for the Hexadecimal number.

using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using

read more

Virtual Class – Building Applications for Windows Phone Mango Jump Start on Aug 23-24 , 2011

Microsoft’s MVP Rob Miles and Andy Wigley are again hosting Windows Phone Mango Jump Start on August 23 and 24 from 8 am – 5 pm for developers looking to build Mobile Applictaions targeting Windows Phone Mango Platform .

Rob Miles is a Microsoft

read more