What I Learned In WP7 – Issue 8

by Jeff Blankenburg 21. December 2010 13:17

Microsoft has officially announced sales numbers for the first 6 weeks of Windows Phone 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;
	}
}

Tags:

windows phone

Comments

12/22/2010 9:44:20 AM #

Blankenblog | What I Learned In WP7 – Issue #8

Blankenblog | What I Learned In WP7 – Issue #8

http://links.ginktage.com | Reply

12/28/2010 12:56:44 AM #

Pingback from topsy.com

Twitter Trackbacks for
        
        What I Learned In WP7 – Issue #8 -
        [jeffblankenburg.com]
        on Topsy.com

topsy.com | Reply

Add comment


(Will show your Gravatar icon)

 

biuquote
  • Comment
  • Preview



My Sponsor

Popular Series

31 Days of Windows Phone 7

31 Days of Silverlight

28 Days of Did-You-Know (Diduary)

Windows Phone 7 Developer Resources

Windows Phone 7 User Resources

Calendar

<<  March 2011  >>
MoTuWeThFrSaSu
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar