Jaime Rodriguez On Windows Phone, Windows Presentation Foundation, Silverlight and Windows 7
There were a good number of breaking changes and new features introduced in the “beta” release of the Windows Phone Developer Tools. Going forward from beta to RTM; the number of breaking changes will be minimal, so let’s just “buckle up” and migrate our code this once. The migration is a lot easier than it sounds. I will first walk through the obvious breaking changes that the compiler will catch, and then share tips and workarounds in some of that ‘missing’ stuff that the compiler will miss. Once you have gotten through this, don’t forget to read my post on the new features in the beta release so you can start taking advantage of these. Breaking changes:
To fix: You should just remove the references to effects from XAML and code. You can use graphics (e.g. gradients for dropshadows) to try to get similar look & feel. Not exactly the same, but best workaround I can think of until Microsoft brings these back in a future version of the platform.
To fix: simply replace the namespace and/or class name and reference the new assembly (if applicable)
Steps for migrating your code (referenced above as MigrationTips.X ) :
Search for Replace with: PhoneTextPageTitle1Style PhoneTextNormalStyle PhoneTextPageTitle2Style PhoneTextTitle1Style PhoneTextApplicationNameStyle PhoneTextNormalStyle PhoneTextTitleNameStyle PhoneTextTitle1Style
Closing Advise/asks: Please share back your experiences and tips!! I know this document is not 100% comprehensive. If you run into one change that I missed or get stuck along the way, please email me directly [via email blog author on the sidebar column] so we can update and improve this document.
Don’t forget to read the release notes. This document overlaps with some of the content in the release notes, but I focused on migration, so there are other tips and known issues there that will be useful to you; please take a look at the release notes.
Happy Windows Phone coding!
Jaime,
Are you saying that the Beta build is going to be available today :D ?
Hi Jaime,
now that the cat is out, any hint when we will see the beta bits?
I guess brandon watson is gonna officially release the beta bits at his WPC keynote in a few hours! awesome.
Hope you've not broken any NDA there Jamie.
I guess the search for Windows Phone Dev tools just climbed significantly.
Time to start hitting refresh on Windows downloads :-), ah the good old days, the race to e the first to get a blog post out about a new release.
But thanks for the heads up, time to get refresh posts ready for tutorial series.
Simon (Darkside) Jackson
xna-uk.net/.../default.aspx
>> To fix: Use ListBox and a Template that matches the old ListViewItem template.
Could you please provide one? I've used the ListViewItem and now have no template to replace it (
I have a project I'm going through now and updating and using your site as references. Thanks.
I referenced your site on my blog, hope that's cool with you?
www.pchenry.com/.../Default.aspx