Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

What I Learned In WP7 – Issue 8

DZone's Guide to

What I Learned In WP7 – Issue 8

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

These were the sales numbers after the first 6 weeks of Windows Phone 7 availability:

1.5 million phones have been sold to carriers and retailers.

That’s pretty exciting news.  Add that to the ever growing App Marketplace, and this platform is really taking shape quickly.


Today I am working on a simple Twitter application for a presentation I am giving at Codemash called “Mobile Smackdown” where I am going to be presenting with Chris Judd (Android) and Daniel Steinberg (iPhone).  We’re each going to build the same application on our respective platforms in 15 minutes.  Hence the “simple” moniker.  In building this, I realized that I’ve always required users to type something in a TextBox, remove focus from that textbox, and then press a save button.  As it turns out, there’s an easy way to use that “Return” key on the on-screen keyboard.  Here’s the code:

void textbox_KeyDown(object sender, KeyEventArgs e)
{
	if (e.Key == System.Windows.Input.Key.Enter || e.PlatformKeyCode == 0x0A)
	{
		//Do stuff here
		e.Handled = true;
	}
}

 

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:

Published at DZone with permission of Jeff Blankenburg, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}