Search Results For : windows phone 7

WPDT 7.1 Comprehensive Developer Documentation

Recently Chris Ismael, Developer Evangelist from Microsoft Singapore posted a blog post on Innovative Singapore on the resources which Microsoft kindly released to help the developer to learn WPDT 7.1 ( Known as Mango )

This blog post consolidate all the samples and walkthrough on how to use WPDT 7.1 http://innovativesingapore.com/2011/05/a-comprehensive-mango-developer-documentation-reference/

Windows Phone 7 – Putting application in game hub

One of the things that i tried to do is trying to put the application which we have created into the game hub. I cant seem to find this resource easily and hence I have decided to post it and how we can go about doing it.

According to http://msdn.microsoft.com/en-us/library/ff769509(v=vs.92).aspx
We will have to go to WMAppManifest.xml and edit the Genre

You can fill in either Apps.Normal or Apps.Games.

AppManifest - Game

AppManifest - Game

By doing this, you will place your application into the game hub.

You can download the sample code here.
http://cid-29f099c37b76ca59.office.live.com/self.aspx/Blog/Code%20Guide/Windows%20Phone%207/XNAGameHubSample.zip

If you have any question or query or feedback, you can contact me at [email protected]

Comprehensive guide to development resources for Windows Phone

AppHub had just created 22 scenario focused web pages for developers. It provides a comprehensive view of all the resources available for Windows Phone 7 development. I figured that this will be interesting and useful for developers like you and me.

We can see this here, http://create.msdn.com/en-us/education/basics/developer_resources

Silverlight for Windows Phone
XNA Game Studio and XNA Framework
Windows Phone Developer Tools and Device Unlock
User Experience and User Interface
Application and Execution Model
Input, Touch and Gestures
Launchers and Choosers
Security
Frame and Page Navigation
Isolated Storage
Performance
Advertising Services
Camera and Photos
Media – Audio and Video
Push Notifications and Live Tiles
App Bar and Controls
Location and Mapping
Networking and Web Services
Sensors
Globalization and Localization
Porting Your App or Game to Windows Phone 7
Application Publishing and Marketplace

Error reporting for Windows Phone 7 : Little Watson

I was looking through some resources and found this interesting bit written by a Microsoft developer working for mobile. He written it for his personal use and he is kind enough to release it to the community.

Link : http://blogs.msdn.com/b/andypennell/archive/2010/11/01/error-reporting-on-windows-phone-7.aspx

What he really did was actually to call the methods he had written in Application_UnhandledException and RootFrame_NavigationFailed in App.xaml.cs and this code bit will actually send an email to the email you specific with the stack trace and the error.

Simple and useful!

Thanks Andy.

Detecting theme on Windows Phone 7

This blog post is going to teach you how do we detect if we are on dark or light theme on Windows Phone 7. I realised that this will be useful because I have quite some friends who are asking me about it because they didn’t get the right resources online. If you happened to come across a resource that asks you to get from App.xaml, that doesnt work anymore as its removed after the RC build.

Based on Theme Resources for Windows Phone, under Theme Visibility and Opacity.
By checking Resources, I am able to check if its Visible or Collapsed for the dark or White theme by doing this

Visibility isLight = (Visibility)Resources[“PhoneLightThemeVisibility”]; // for light theme
Visibility isDark = (Visibility)Resources[“PhoneDarkThemeVisibility”]; // for dark theme

Then we use if else to check,

if (isLight == System.Windows.Visibility.Visible)
{
//We are on light theme
}

Light Theme

or

if (isDark == System.Windows.Visibility.Visible)
{
//We are on dark theme
}

Dark Theme

Attached is a sample code to show how do I detect Windows Phone 7 theme, before the Mango buuild ( I am unsure if there is a change after Mango ).
Detect Theme on Windows Phone 7 Sample