latest posts

Not to steal credit for Aaron Stebner's work, I want to post some additional information for how I got it to work on both my laptop and desktop.
  1. Download and install the Games for Windows LIVE Redistributable
  2. Download the Windows Phone 7.1 SDK - ISO Image
  3. Download the Windows Phone 7.1.1 SDK Update
After installing the Games for Windows Live Redistributable, I installed the regular web installer of Windows Phone 7.1 SDK only to get partial success. Installing the 7.1.1 SDK Update ran the same. It was only after doing a repair/reinstall from the ISO image download as referenced above and the reinstalling the 7.1.1 SDK Update that I was able to start coding WP7 XNA games on Windows 8 inside of Visual Studio 2010 Express. Hopefully that helps someone, at the very least it will remind me of the steps when the Windows 8 RTM comes out in August :)
I've been working on a small-ish scale project for the last week now off and on, I'll be announcing it officially probably next week. But anyway, I was running into a problem the main function of the app taking quite a while to process. Given that the performance of the app is entirely dependent on the 3G, 4G, LTE or WiFi connection strength of the phone I wanted to assume the worst when it gets released. Therefore I started looking around for a way to as the the results were returned have the Listbox update asynchronously. Previously with the Windows Phone 7 apps I have developed I simply have had a "Loading" Indicator and a second or two later it would go away, so there really wasn't a need for a "better" solution until now. Hunting around the WP7 SDK, I came across exactly what I was looking for: Observable Collections. In the "default" solution I had noticed this collection type previously, but always removed it in lieu of a Generic List Collection of whatever object I was using. The only caveat I found when using this approach is that you have to use the Dispatcher to update the collection on the UI Thread. That being said here's a quick code sample: In your Button or Page_Load Event set your Listbox ItemSource to the ObservableCollection you're going to populate:
lstBxResults.ItemsSource = App.ViewModel.Results; ]]>
Inside your ViewModel loop or asynchronously task (like a WCF service call for instance), wrap the addition of the result inside a Dispatcher Invoke:
System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() => {
     Results.Add(new YourObject(e.Result)); }
); ]]>
With those 2 blocks you'll have your Listbox updated as they get added to the ObservableCollection from whatever time consuming task your phone is doing. Hope that helps someone out.
After a few days wait, I've ported jcBENCH to Windows Phone 7 (aka WP7 or Windows Phone). I've only tested it on an HTC Titan thus far, but all of the WP7 devices released thus far are all about the same specs wise. Virtually all of them have a 1.4ghz or 1.5ghz SnapDragon CPU, 512mb of RAM and all support 480x800. I wish the Titan would have had one of the Dual Core Qualcomm CPUs, maybe in the Titan III :) [caption id="attachment_860" align="aligncenter" width="480" caption="jcBENCH WP7 Screenshot"][/caption] All you'll need to run it is a developer unlocked phone and then deploy the XAP file as you would normally.