Category Archives: Image

How to find your Google Plus ID

This is so simple

1. Go to your Google + account (https://plus.google.com/).

2. Click on the Profile icon on the Left.

3. If you look at the URL in the address bar, it should look something like this:

https://plus.google.com/104653270154306099169/posts

4. The long numerical string in the URL is your Google+ ID. Here is CoderzHeaven’s from the URL above:

104653270154306099169/

Google + CoderzHeaven

How to set an image in an Image Control in Windows Phone 7?

Hello everyone……

Windows Phone 7 with it’s simplicity has become really easy to study and code. In today’s tutorial I will show you how to set an image in an image control in windows phone 7.
Assuming you have place the image control in the xaml file. I will first show you how to set the image source in the xaml file.

<image Name=”imgMyImage” Source=”images/coderzheaven.png” />

Assuming that you have placed an imaged named “coderzheaven.png” inside images folder in the solution explorer.

Now if we want to dynamically set the image in code we do this.

myimage.Source = (ImageSource)new ImageSourceConverter().ConvertFromString(“images/coderzheaven.png”);

Since the result from ConvertFromString is an object we have to cast it to an ImageSource.

You can also set it in the properties window of the image. Click on the image control and in the properties window. do this..

Adding image source in windows phone 7

Adding image source in windows phone 7

Please leave your valuable comments on this post.