Invincible
Invincible

Reputation: 422

How to handle different screen size while developing windows phone 7 app

I am completely new in windows phone app development. I want to know what is the best way to handle the different screen size while developing apps in windows phone 7.

Upvotes: 1

Views: 1327

Answers (3)

Dasun
Dasun

Reputation: 3294

Though I've never seen a 480x640 device it says that Windows Phone 8 support following resolutions, 640x480(4:3), 800x480(5:3), 1280x720(16:9) and 1280x768(5:3).

Here a wonderful blog post I've found about windows phone 8 screen sizes.

Upvotes: 0

Steve
Steve

Reputation: 216293

As said in the comment, WinPhone7 has only one resolution, but to be prepared for the new devices (WinPhone8) you should code something like this:

using System.Windows;  
public void GetScreenResolution(out int w, out int h)  
{  

     w = Application.Current.Host.Content.ActualWidth;  
     h = Application.Current.Host.Content.ActualHeight;  
}  

Upvotes: 3

Igor Ralic
Igor Ralic

Reputation: 15006

Currently, there is only one screen resolution available: 480x800 (width x height)

Therefore, you develop for just one resolution, and screen size doesn't matter.

With Windows Phone 8, things will change, but there is no public SDK available yet and the Windows Phone 8 technically still doesn't exist for consumers, so you should continue developing for WP7 and 480x800.

Upvotes: 1

Related Questions