Tuesday, November 16, 2010

Smart421

I have recently left Hitachi Consulting and joined a similar Microsoft and Oracle Gold Partner consultancy company named Smart421 where I work as a Technical Architect in the Microsoft space.

Smart421 offer Consultancy, Service Management, Data Management and Business Integration and is part of a larger public company called KCOM.

KCOM were originally a large telecommunication company but now they consist of: KC, eclipse, KCOM and Smart421.

Smart421 specializes in complex enterprise integration projects but more recently full system design the implementation. We have a lot of expertise in SOA Governance and PCI DSS.

I form part of the Microsoft practice but we also have a fairly large Java practice with particular focus on IBM WebSphere, DataPower and many other IBM tools/technologies. Smart421 prides itself in Enterprise Architecture as we are active members of the Open Group and have many TOGAF practitioners.

So far I'm liking it a lot as I get to be involved in lot of different things and hope soon to be a certified TOGAF practitioner.

Saturday, November 06, 2010

Smartphone Essentials WP7 Article - not completely true...

I was in a local newsagent the other day waiting for my train and noticed a magazine "Smartphone Essentials" (UK magazine) as it had a spread on the newly released Windows Phone 7 device. I only had a couple of minutes, so I skipped to the Windows Phone 7 bits.

I have to say the authors for this magazine need to do more research before they publish this stuff. Windows Phone 7 Series is not "Brand new from the ground up". The magazine was suggesting that WP7 is a completely new OS built from scratch. This is simply not true. When people read this, they generally assume 1 thing, it's brand new so it will be full of bugs and issues so I'm going to wait for v.NEXT.

Windows Phone 7 series has a new shell and application framework that is fully managed code that sits on Windows CE 7 OS. Windows CE is the same OS used in Windows Mobile except in Windows Mobile the latest version used is Windows CE 5.2.

The other thing that is not true was that fact they mentioned Windows Mobile is dead. Windows Mobile is still being sold and is still supported by Microsoft today. It will be renamed soon to Windows Embedded Handheld which is essentially still the same Windows Mobile shell OS.

There is still a fairly large enterprise market with investments in Windows Mobile that are being used for mission critical applications today and will continue to do so. Windows Embeded Handheld will be geard towards business users. Some Windows Mobile devices such as the MC65 and ES400 will port over to the new OS.

Smartphone Essentials: just because Windows Mobile is not competing too well against platforms such as Android and the iPhone in the consumer markets, doesn't make it a dead platform. There is another world out there.

Friday, November 05, 2010

SELECT TOP (n) in Entity Framework or LINQ to SQL

I have recently inherited a project that makes use of WCF Data Services with the Entity Framework being used as the ORM to facilitate this with Microsoft SQL Server 2008 R2.

I had a requirement to only ever retrieve a maximum of 100 items no matter the query. In SQL this is easy and can be achieved using the SELECT TOP (N).. syntax.

Using a lambda expression to return a collection of IQueryable objects can be achieved simply as the following:
IQueryable<MyObject> resultSet =
service.MyObjects.Where(c => c.Name.Contains(searchText))
.OrderBy(x => x.Name)
.Take(100);
Remember here that the actual REST call is not made until you call ToList() on the collection. This query simply creates the REST URL as a string.

But using the extension method Take(n) will translate to TOP in SQL.

Saturday, October 30, 2010

Free Not For Resale MSDN Subscription up for grabs!!





I have in my possession a Not For Resale Visual Studio 2010 Ultimate with MSDN Subscription, and it's up for grabs. Like all other Microsoft MVPs I had 3 to give away, I have given away 2 already but now I have just 1 left.

So I can't think who to give it to as the two lucky people that received this free subscription were the only ones that I know of who wanted to get into programming or wanted to move to Visual Studio 2010 and the 2010 wave of Microsoft products. Most of the people I know receive Visual Studio 2010 as part of their corporate MSDN licence provided by the company they work for.

I thought about who to give this to and I couldn't really think of anyone that I thought really derserves it. So instead I took an idea from what some other MVPs have been doing and that is to present a challenge to the community and the best or the right answer wins the MSDN subscription! That's fair don't you think...


The Challenge

As I am passionate about Technical Architecture and good clean code and the fact I have done lots of code reviews in my career, I thought the challenge could be around best coding practice or the best example of clean maintainable easy to understand code.

So the challenge is really: write an application for the new Windows Phone 7 Series device using the new free tools (Visual Studio 2010 Express with Windows Phone 7 Series) that promotes good architectural design.

The things I'm looking for and this will greatly increase your chance of winning are as follows:

  1. Good OO, pay attention to the single responsibility principle. No procedural code
  2. Code must be maintainable
  3. Easy to understand
  4. Good system design patterns such as, command, MVVM, MVP, repository etc
  5. Good code coverage (doesn't need to be 100%) but if used will make achieving 1, 2 and 3 on this list a lot more likely
  6. You'll get extra marks if you make use of the IoC container I checked in to codeplex: http://wp7.codeplex.com/ - note that project is targeting the Beta tools of Windows Phone 7, I haven't got round to updating it yet but it should work with the RTM release of Windows phone

So..... the ultimate question you're probably asking is, what application should you write? well it doesn't matter. It could be an application as simple as a calculator to something that makes use of networking or Windows Azure for example. The person that wins this will be win it based on good architecture code design.

You've got until Tue 26th November to get something to me to review. Then I'll announce the winner before the end of November. The subscription does expire soon which is why I'm only giving about 3-4 weeks to do this.

Send submissions to simon (at) simonrhart (dot) com. If you have any questions then leave a comment on this post.

Happy coding!!

Friday, October 22, 2010

TFS 2010 Backup Power Tool - Grant Backup Plan Permission Failed

Now that TFS Power Tools has been released we can take advantage of the Team Foundation Server Backup feature that makes backing up TFS so much easier than it used to be.

The TFS Power Tools contain tools client side too, it's just the backup feature is designed to actually run on the TFS server itself.

It supports backing up not only all your collections but also your Reporting Server database (if using SQL Server Reporting Services integration) and your SharePoint databases if using MOSS for enhanced reporting. It works very much like the standard Windows Server Backup utility that is shipped with Windows Server 2008 R2.

You have an option specify how many copies of the backup to keep. You have to backup to a network location. You can't backup to local disk like you can with Windows Server Backup. This tool is designed to worry about backing up TFS so you don't have to.

The tool integrates with the Team Foundation Server Administration Console. So you create a backup plan from within there. You can specify when the backup should run i.e. daily, weekly, time of day etc. It can run under a domain or local account to.

There are a few articles out there that step you through the process of setting this up so I'm not going to do it here. Instead I came across a nice "issue" with it when setting it up that I thought might save other people time as I burnt quite a bit of time on this. Here is a very good example of this: http://myalmblog.com/2010/09/12/tfs-2010-power-tools-tfs-backup-and-restore-hands-on-lab/

So my issue was when getting to the end the readiness checks were failing with the Grant Backup Plan Permissions step. Which was weird as I had write access to the UNC path to which the backup was writing. The other strange thing was I discovered a file in the UNC path after running this readiness check.

After investigating further and looking at the log file (snip copied here) I figured out what was wrong:
Error  @15:35:29.014] System.UnauthorizedAccessException: Access to the path '\\server\backup\TFSBackups\Tfs_Configuration_20101022163528.bak' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at Microsoft.TeamFoundation.PowerTools.Admin.Helpers.BackupFactory.TestBackupCreation(String path)
[Error @15:35:29.060] !Verify Error!: Account DOMAIN\user failed to create backups using path \\server\backup\TFSBackups
[Info @15:35:29.060] "Verify: Grant Backup Plan Permissions\Root\VerifyDummyBackupCreation(VerifyTestBackupCreatedSuccessfully): Exiting Verification with state Completed and result Error"
[Info @15:35:29.060] !Verify Result!: 5 Completed, 0 Skipped: 4 Success, 1 Errors, 0 Warnings
Notice what it is doing yet!? It basically writes a file to the UNC path to check for write permissions - BUT not as the service account, it uses the current logged on user account (this is a bug I'm sure). But what is failing is actually the deletion of the file.

Because of this the readiness checks fail and you can't continue. After looking at the permissions (or should I say IT looking at the permissions) it turns out I didn't have Delete permission for the current logged on user for that UNC path. Once setting the Delete permission to true, the problem went away and now I have a successful backup plan in place!

Tuesday, October 19, 2010

Power up failed (vrc=VERR_VMX_MSR_LOCKED_OR_DISABLED, rc=E_FAIL (0X80004005))

I recently tried to use VirtualBox to run a Virtual Machine on my new laptop which is a HP EliteBook 8530w. But after attempting to start the VM I encountered the following error: Power up failed (vrc=VERR_VMX_MSR_LOCKED_OR_DISABLED, rc=E_FAIL (0X80004005))

So as per the return code, this is telling me that VT-x is either locked or not enabled. It can't be locked as this is running on Windows 7 which does not have any other virtualizer running, i.e. VirtualPC or Hyper-V. It is enabled as I explicitly set virtualization in the BIOS. It turns out that I needed to also enable Txt Technology. Once Txt Technology was enabled, the VM fire-up! nice

I am not normally a VM person, but my new laptop is a beast. 8Gb of RAM so I can allocate 4Gb to the VM and it runs like a host OS.

Monday, October 18, 2010

The File AssemblyInfo.Cs could not be found within the project templates. Continuing to run, but the resulting project may not build properly.

Today after installing Visual Studio 2010 on a fresh copy of Windows 7 Enterprise, I encountered the following error message whenever I tried to create a new project using any project template: The File AssemblyInfo.Cs could not be found within the project templates. Continuing to run, but the resulting project may not build properly.

I think this may be due to the fact I accidentally installed a pre-release version of ReSharper 5.1 (I was meant to install the RTM version). Even after uninstalling ReSharper the problem did not go away.

To fix the issue, I simply ran this trusty old command: devenv.exe /InstallVSTemplates

Job done.

Saturday, October 16, 2010

Arrow and Enter keys stop working in Visual Studio 2010

I found this issue with the RTM of Visual Studio 2010 recently where the arrow keys and the Enter key do not work as expected. This is a show-stopper as you can't write any code, or rather you can, you just have to write everything on 1 line!

I have 3 machines with VS 2010 installed. Each machine is fairly similar in configuration. I have only encountered this issue with 1 of those 3 machines - which makes it very hard to diagnose.

In my scenario I found the some of the arrow keys - the up key for example was acting like a tab within the code window. It would when pressed allow me to set focus on the combo box that contains classes the the current namespace.

Other people have received this issue, but the work around for them is to simply close and reload VS. In my case this didn't work. I even uninstalled all of the VS 2010 bits including the framework to no avail. This problem affected all SKU's of Visual Studio 2010 (only 2010, 2008 worked fine for me).

I should mention VS 2010 RTM used to work on this troubled machine. It must of been something I installed or configuration I changed later. I tried rolling my machine back to when I think it was working, again to no avail.

There is a bug report on Microsoft Connect here: https://connect.microsoft.com/VisualStudio/feedback/details/534869/arrow-keys-stop-working-in-editor?wa=wsignin1.0#tabs

So if you have experienced this, make sure you vote on the link above, or if you found a work around please leave a comment.

This may of been due to the fact I installed RC and beta copies of VS - as I installed pre-release copies of Windows Phone 7 developer tools. Then I installed the RM version of VS 2010 after uninstalled the pre-release versions as per the release notes.

Conclusion.....

I failed to figure out what was causing this. If I had the source code of course I could debug VS but as I don't, it was down to trial and error. I had no logging written to the event log. VS never crashed as a result of this, it is just a very annoying bug that I could not figure out what caused it.

So in the end, I had to reinstall Windows, and now.....I have VS 2010 working again!

Thursday, October 14, 2010

DiscoverServices : Failure in find service API calls : Can't find PInvoke DLL 'BTInterface.dll'.

I have been coding against the new Motorola MC65 and the Motorola ES400 - devices that will port onto the new Windows Embedded Handheld when released later this year.

I was attempting to pair with an embedded bluetooth device using the EMDK v2.3 - an EMDK that has worked on previous Motorola devices such as the MC75.

When attempting to pair using the Symbol.WPAN.Bluetooth.Bluetooth class, the device receives the pair message but then the EMDK throws ab Exception with message "DiscoverServices : Failure in find service API calls : Can't find PInvoke DLL 'BTInterface.dll'."

The stack trace looks like this:
   at ag.l(RemoteDevice A_0)
at ag.n(RemoteDevice A_0)
at ag.j(RemoteDevice A_0)
at Symbol.WPAN.Bluetooth.RemoteDevice.Pair(String AuthenticationPIN)

I can confirm, once upgrading to the latest version of the EMDK v2.4 fixes this issue (v2.04 of the Symbol.WPAN.dll assembly).

You can download the EMDK v2.4 for .NET here: http://support.symbol.com/support/search.do?cmd=displayKC&docType=kc&externalId=12874&sliceId=&dialogID=196190455&stateId=1%200%20196186434

Friday, October 01, 2010

Microsoft MVP Award 4th year in a row!

I have just received the 2010 Microsoft MVP Award in Device Application Development. This is my 4th MVP award in a row and it's an honour to be in the programme for another year.

Thanks Microsoft!

Cheers

Thursday, September 23, 2010

StyleCop for ReSharper

Last night the UK ALM user group was fantastic. I really enjoyed it and we had good discussions going. So thanks to Stuart Preston for setting it up and thanks to the speakers, Karel Deman from Avanade for a great talk and Howard van Rooijen.

Which leads me to why I started to write this post. Howard demoed a tool he built called StyleCop for Resharper.

Now if you've never heard of ReSharper - shame on you, then you can search my blog or the web for info on it. If you've never heard of StyleCop then again search the web or read this post that should give you a quick overview of what StyleCop is designed to address: http://blogs.msdn.com/b/sourceanalysis/archive/2008/05/23/announcing-the-release-of-microsoft-source-analysis.aspx

Just quickly; StyleCop is a code style analysis tool. It at compile time will inspect your code against a pre-determined set of rules to determine whether your code complies with your companies coding style implicitly. The problem with it is it only tells you what is wrong with your code when you compile. And in order to get a list of "failures" you have to look at the warning tab in the 'Errors' window in Visual Studio.

When you install StyleCop: http://code.msdn.microsoft.com/sourceanalysis you get the option to install MSBuild targets that you can call during your automated build process. I haven't yet tried this but I will. As what you can do is fail the build if a developer has not complied to your companies codeing style.

Don't confuse StyleCop with FxCop or (Code Analysis) they are very different. Code Analysis inspects your assemblies post compilation for good practices in terms of how you have built your solution, i.e. implementing IDisposable when consumed types support it. Proper use of localization and best practice use of the .NET class libraries.

StyleCop for ReSharper is a ReSharper plugin (yes ReSharper supports plugins even though ReSharper is itself a VS plugin). What it does is it works like ReSharper, so as you type, it will inspect your code and tell you whether you are breaching StyleCop rules for that project. And as per ReSharper style, of hitting Alt+Enter, it gives you corrective options to fix your code for you!

I like it alot. I think it really is a great tool. Combined with the StyleCop build targets I think this can work well in a team environment. As to configuring your projects for StyleCop use, StyleCop creates a file in each project directory that it reads. It doesn't work like Code Analysis, where the settings are baked into the .proj file. So I'm thinking maybe include that file in Source Control so each dev machine doesn't have to configure their machine everytime a new environment is spun up or a new project is added to the solution.

Check it out here: http://stylecop.forresharper.org/

Tuesday, September 21, 2010

UK ALM User group

We Hitachi Consulting are hosting the next UK ALM user group at 2 More London (London Bridge) tomorrow night 22nd September.

Now I'm not sure if it is too late to register at this time, but the event brite registration page can be found here: http://ukalmug-september2010.eventbrite.com/

Thursday, September 02, 2010

No need for server side clientaccesspolicy.xml when using Silverlight for Windows phone 7 Series

If you're a seasoned Silverlight developer you'll be well aware of having to incorporate the clientaccesspolicy.xml file in the root of your service domain with a method that returns the file as a Stream object. MSDN documentation that describes that and the documentation can be found here: http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx

Then you would typically define a method that looks like the following that is accessible via a RESful call (if using WCF) - note: the UriTemplate here is what is important:
[OperationContract, WebGet(UriTemplate = "/clientaccesspolicy.xml")]
Stream GetClientAccessPolicy();
Executing any method from within a desktop Silverlight app whether in-browser or out-of-browser (SL 3 feature) will call that method above implicitly by the SL HTTP stack.

When calling any web method from a Windows phone Silverlight application, the 'GetClientAccessPolicy' is not called so there is (currently no need for it if your clients are from WP7 apps).

I'm not sure if this will change when the WP7 tools RTM on the 16th September - I will be the first to try!

My colleague Anthony Cooper found this out, so thanks to him.

Windows Phone 7 Series released to RTM

Just in case you haven't heard the news yet, yesterday Windows Phone 7 Series was released to RTM: http://windowsteamblog.com/windows_phone/b/windowsphone/archive/2010/09/01/windows-phone-7-released-to-manufacturing.aspx

Excellent work to the Windows Phone team!

So now we wait for OEMs to produce some hardware...not long I'm sure.

The tools RTM on 16th September: http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/08/23/a-developer-s-roadmap-to-windows-phone-7-launch-timing.aspx

Wednesday, July 28, 2010

Building your Windows Phone 7 Series apps using Team Foundation Server 2010

UPDATE: There is a workaround to what I have said here. See this post - a really cool way to build WP7 targeting different WP7 builds: http://justinangel.net/WindowsPhone7EmulatorAutomation#BlogPost=TFS2010WP7ContinuousIntegration

So the ultimate question is, how do I build my Windows Phone 7 Series apps on TFS and perhaps run unit tests against a Windows phone 7 series emulator. The short answer is you can't, well that's not entirely true. You can build your Windows phone 7 series apps on TFS so long as you install the developer tools on your build server.

Bear in mind when you install the developer tools you will not only get all the required build targets and Silverlight framework for Windows phone 7 series but also a VS2010 IDE as well. This will either be VS2010 Express edition if you don't already have VS2010 RTM installed on your server, or the tools will integrate into VS2010 RTM (if installed). Either way, you are going to get an IDE on your build server.

This might sound rather ugly and I have asked Microsoft for separation of the tools/framework etc from the IDE so ISVs/consultancies can be more flexible how they build their apps. But this is really not high on Microsofts priority list right now. The reason is simple. These tools are targeted toward consumers, so the majority or at least what Microsoft would like is the majority of people building apps/games for Windows phone 7 series are individual programmers whether professional or ameteur and not big companies. Long term this will change.

Instead, the priority is to deliver a really quick and easy way to get up and running building Silverlight or XNA apps for Windows phone. And Microsoft has done this. Simply go to http://developer.windowsphone.com/ and you can download a single package, run it and this will set your machine up ready to build and ship apps on the Windows phone platform. No other downloads are required.

The cool thing about this is, unlike Windows Mobile development, the tools are free. A great step forward.

So to recap, in order for more professional programmers to build Windows phone apps using a sophisticated continuous integration yada yada solution, you need to install the tools on your build server, but you will get the IDE as well.

I also mentioned unit testing. Currently the latest beta tools do not support unit testing on the emulator. Of course you can still write unit tests that execute on the desktop against your Silverlight for Windows phone apps. I have a sample of this over at http://wp7.codeplex.com/

Happy coding!

Monday, July 26, 2010

Username and password format for TFS on codeplex

When you first setup a project on codeplex there is a popup that tells you what domain\username and password to use to connect to the TFS server.

But I found after setting up a project I couldn't remember what the format should be.

So this post is really for my benefit if nothing else, here it is:

Username: snd\<username>_cp
Password: <Codeplex password>

Sunday, July 25, 2010

I'm TestDriven.Net

Thanks to the chaps over at http://testdriven.net/ I got the opportunity to test their product.

So, one of the real problems with Visual Studio when it comes to unit testing your code is it is really slow and unproductive.

If I write a test method in C#, I often want to quickly run it and run it often as this is the whole point of TDD isn't it. If you use MSTest you'll probably find this is the slowest testing tool available but its great integration with TFS often makes it a desirable choice.

To quickly test our method we normally right click the method in code, and select "Run Tests". This will (if a MSTest) switch to the Test Results window and show you the result of the test, great. But...you'll find this quite slow. Then what if you want to debug a test. First you have to run the individual test as said above, then check the check box and hit Debug Test.


This is fine but all very time consuming, why can't I just say Debug this test without having to run it first, check the check box, then hit Debug test.

This is where TestDriven.Net comes into play. Now after installing the tool, I have a new menu item when right clicking my test "CanResolveTransientComponent":



So here I can hit "Run Test(s)" and it will execute the test in a fraction of the time that Visual Studio will do it. When doing this, TestDriven.Net will switch to the output window and show the test output:



So 0.36 seconds is pretty fast. When running via Visual Studio it is much longer, perhaps around 2 seconds for the same test.

The reason for this is when you execute via TestDriven.Net, it omits MSTest code coverage. This greatly speeds up the testing process. If and when you're interested in code coverage you can ask TestDriven.Net to give it to you.

There is a submenu when you right click your test method:



I like this submenu alot. It gives great flexibility in how you run your tests. If you want to simply debug your test without have to go through the lengthy steps mentioned earlier, simply select "Debugger". Sweet.

As mentioned earlier regarding code coverage. When quickly executing a test the MSTest code coverage is omitted in order to speed up the test greatly. But if you want MSTest code coverage then you can select "Coverage" from this handy submenu. This will give you pretty much the same results as if you ran the test via Visual Studio itself.

As you can probably see, if you use another test tool other than MSTest, there is integration for NCover. In fact NCover works for MSTest too. Selecting NCover from the submenu fires up the NCover Explorer tool that gives you a code coverage for the test(s) you have selected to run:



This is a great feature, I do like this.

Another really cool feature that I'd like to mention is support for performance testing. Selecting "Performance" from the TestDriven.Net submenu gives you a nice breakdown of performance data for your test:



There are many more features to checkout with TestDriven.Net and I recommend you check them out.

Sunday, July 18, 2010

Windows Phone 7 Extension Tools

I started porting some code from the Compact Framework over to Silverlight for Windows Phone.

I have created a project on codeplex: http://wp7.codeplex.com/. The solution so far contains an IoC with support for implicit dependency injection - in fact this is a port from the Compact Container on the CF. It also contains a port of the Common Service Locator for the desktop by the p&p team at Microsoft.

The project is designed to be a work in progress and I'll add stuff to it if I think it might be useful to others.

I do plan over the next couple of days to add an event aggregator to the solution that will integrate with the container nicely to promote nice loosely coupled multicast event model in your Silverlight applications.

I am also working on an API that allows communication with the Microsoft Azure Service Bus - much like you get on the desktop. I will checkin as soon as it is available.

The current solution that is checked in is designed to be used with the latest release of Windows Phone developer tools beta.

Friday, July 16, 2010

Windows phone virtual live class - July 20th and July 22nd

Jump start your development of Windows Phone 7 applications by attending Windows Phone 7 JumpStart. This free virtual live class, comprised of four instructor-led 3 hour sessions, will guide you in developing applications for the Windows Phone 7 platform using Silverlight and XNA. Register today by visiting: https://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032455932&EventCategory=2&culture=en-US&CountryCode=US.


Course sessions:

July 20 – 8am: Session One: Getting Started with Microsoft Windows Phone and Silverlight
July 20 – 1pm: Session Two: Programming Game Applications with XNA
July 22 – 8am: Session Three: Programming Applications with Silverlight
July 22 – 1pm: Session Four: Review and Wrap Up

Wednesday, July 14, 2010

Pivot and Panorama support in Windows phone 7 beta






The title of this blog post is a little confusing (it was meant to be!) in that there is no support for the Pivot and Panorama controls in the latest bits of Windows phone dev tools. The controls pictured above are courtesy of Stephane Crozatier.

Those controls are freely available on codeplex to download but were designed for the CTP bits of Windows phone. So as there were some breaking changes between the CTP and the recently released beta they won't work out of the box. But it very easy to fix.

Firstly you need to do delete the Microsoft.Phone.* references and add the Microsoft.Phone.dll to the project. All those additional dlls have been merged into Windows.Phone.dll.


Then you'll need to clean up the XAML namespaces. Luckily for me I have ReSharper 5.0 installed and all I have to do is press Alt+Enter and it fixes all my problems! nice



Now if you want the sample WeatherForecast app to run you need to do 1 last thing. That is the ApplicationBarIconButton class now has a mandatory Text property so you need to set this property for each of the buttons in the MainPage.xaml file.

Now once I clean up all that XAML, I rebuild and run and I get...



Sweeet....

Another nice cool thing with this emulator over the older Windows Mobile emulators is that you can do a ALT+Prnt Scrn to get a copy of the current focused window. You can't do this on Windows Mobile emulators.