background preloader

Windows Phone 7 Development

Facebook Twitter

Jabby - XMPP client for Windows Phone 7. Why can't I change the Background of my Button on a Click event? - Peter Torr's Blog. I've been meaning to post this for a while, since the question comes up from time to time (internally and externally) The typical problem is that you have some XAML like this: and some code-behind like this: private void ClickMe_Click(object sender, RoutedEventArgs e) { (sender as Button).Background = new SolidColorBrush(Colors.Green); } But when you click the button, it briefly turns White and then goes back to Red... what happened to the Green value? So what happens is that your button is Red, and when you press it the VSM kicks in and generates some animations.

On the phone, we have very simple templates that both match the Windows Phone look-and-feel and are more efficient. Here's an example of a button with a template that gives the desired result; the new or modified bits are highlighted: There are still some caveats with this approach: Download details: Windows Phone Developer Tools January 2011 Update. January 2011 Update to the Windows Phone Developer Tools providing bug fixes, a new emulator, and utilities. This update is composed of two installation files and includes the contents of the deprecated October 2010 Update. Note: There are multiple files available for this download. Once you click on the “Download” button, you will be prompted to select the files you need. Important Installation Instructions There are TWO separate installations for the Windows Phone Developer Tools January 2011 Update.

Loading your results. DotNetOpenAuth - OpenID, OAuth, and InfoCard for .NET. Code Samples for Windows Phone. Calling JavaScript Functions in Windows Phone 7 - Mike Ormond's Blog. Today we’re hosting one of our Windows Phone 7 deployment labs and I’ve been spending some time with a partner trying to determine if they’ll be able to do what they need to do on a Windows Phone 7 device. They have a rich media app which needs to be able to modify the HTML DOM based on certain events. We needed to explore whether we could grab some info from one web page and use it to modify another page. We didn’t get off to the greatest of starts.

Using the WebBrowser control and InvokeScript() we continually encountered an 80020006 error. We tried everything to get to the bottom of it. So, I’m happy to confirm all works as expected and happy to provide the warning *watch out for caching of WebBrowser on the emulator*. Here’s some code to illustrate what we wanted to do. <html><head><script> function hello() { return 'hello'; } function sayHello(sayWhat) { return sayWhat; } </script></head><body> Hello </body></html> There are actually two identical pages (ie with the same source). Consuming WCF 4.0 REST Service in Windows Phone 7. Windows Phone 7 (WP7) is the upcoming next generation Mobile Operating System by Microsoft. My regular readers may have gauged that I am very passionate about WCF and so I have decided to write an article that shows how to consume WCF REST service in Windows phone application. In this application, I have created a WCF 4.0 REST service.

For demonstration, this service is published on an IIS web server on Windows Server 2008 R2. This article assumes that you are aware of creating WCF REST service. Step 1: Open VS2010 and create a new Windows Phone application as below: Note 1: When you installed VS2010 Express for Windows Phone (Developer Tools), and if VS2010 RC is already installed, then in the installed template list, ‘Silverlight for Windows Phone’, template will be displayed. Note 2: In VS 2010 RTM, the ‘Add Service Reference…’ option is now available (yet to confirm this) Step 2: In the project, add references to the following namespaces: · System.Core. · System.Xml. · System.Xml.Linq. F# Windows Phone 7 (Silverlight) Templates Now On Visual Studio Gallery. Download details: Visual Basic for Windows Phone Developer Tools - RTW. United Nations News for Windows Phone 7.