Jaime Rodriguez On Windows Store apps, Windows Phone, HTML and XAML
A theme is a visual definition of the look & feel for common controls in an Operating System. Themes are usually end-user selectable, changing the theme at the OS level, impacts the look & feel of running applications that are ‘theme aware’. As an example, on Windows Vista and Windows 7, a popular/desired theme is the Aero theme.
Windows Phone supports theming. Here is a screenshot of the themes in action in Windows Phone.
This is the exact same app. No code changes, and no recompile. I switched the OS themes to get the different look and feel.
Since theming is new to Silverlight, I went under the hood for the implementation details, below are my findings (when dissecting the MIX Preview release). Note: This is pre-released preview software, it will definitely change [I will point a few coming changes, and I am sure there will be more than I know about now] .
Details on how end-users will configure themes:
Developer/implementation details:
A known issues at MIX release:
There is a bug in the MIX preview release that makes resource resolution behave different from what I described above. The bug is that {StaticResource} lookups are looking at the “themed resources” collection first instead of looking at application resources first. This is a bug and will be fixed in later builds.
Note that this is not a big issue, you would only see this issue if your themed resources, and your application resources do not match. There is two scenarios when this can happen:
Sample code is at http://learningwindowsphone.com/samples/LearningWindowsPhone.ThemesAtMIX.zip
That is it all you should need to know to get going with themes. Now, you can plan for your Windows Phone application to be theme-aware.
If you are a Silverlight developer take a quick “Journey into Siverlight on Windows Phone” by checking out the free preview of Chapter 6 on the “Learning Windows Phone Programming” book by my colleague Yochay Kiriaty and yours truly.
In this quick read, and you will get a high level glimpse at the the Silverlight stack on Windows Phone and understand the reasons for the few small tweaks.. Mike Harsh said at MIX “if you are a Silverlight developer, congrats you just graduated to Windows Phone developer”.. I am changing that one to “after you read this chapter you will have graduated as a Windows Phone developer” :)
You can also download code samples for this chapter from the code section on the Learning Windows Phone site. This site is a work in progress (our friend who will do the design is on vacation, bear with us). Check the site often as we will soon add the ‘engage’ capability..
Feedback on both the chapter and the site are welcome and appreciated! Try the contact page on the site. Also, in case you missed it, we have another free chapter for “Building your first Windows Phone application”.
Last year, Karl and I had a blast on our WPF for Line of Business tour. It was so cool to meet all these people doing or planning to do WPF. This year, budget is tighter, so no big tour.. but still plenty of WPF and Windows 7 training coming to a city near you.. Here are the details:
April 15, London, UK – Client Development with Visual Studio 2010, .NET Framework 4 & Windows 7 at Techdays UK Mike Taulty, Ian Griffiths, Paul Foster, and others will do a “Client Day” at Microsoft Techdays, UK. This is an all-day Lap Around Windows 7, .NET 4, and any thing you want to ask these guys. Mike,Ian and Paul know everything about WPF, Silverlight, .NET and predicting the stock market. Don’t miss out on their tips. Register here.
April 28,29 - Redmond, WA -- WPF For Line-Of-Business, Reloaded. Karl Shifflett and I will do the same two-day version of the WPF for Line Of Business training we did last year. This is a two-day deep dive into WPF: Day one is fundamentals, Day two has an MVVM focus.
This is FREE, you get breakfast, lunch and afternoon snack. Register here. First-come, First serve, limited capacity. You should hurry, but please register only if you are committed to attend.
April 30, Redmond WA – Building Windows 7 Applications with Windows Presentation Foundation and .NET 4. Karl, me, and a few members of the WPF team will recap the new WPF features in .NET 4, and how to use these features to create applications that take advantage of Windows 7.
Expect to hear about client profile, multi-touch, taskbar, all the new graphics enhancements. etc.
If you can’t make these dates or these cities. Don’t worry. The Redmond trainings will be recorded and published online. That said, join us if you can. You will learn much more in person than watching the videos. We would love to have you.
Stay tuned for detailed agenda. Register as soon as possible if you want a seat.
[PS—If you have a blog, or you participate in any other form of social sharing, please spread the word. We thank you in advance!]
Update 3/24 -- We will only do the locations above. Again, Redmond will be recorded and posted online. As much as we would love to do a tour, this year it simply was not possible; let's try online and see if we can make it work; it could be a way to reach more people (even if not 1:1)
I hear that I am not supposed to do the “sorry, I got busy..” blog post… but it has been long enough that I do feel I owe you a “catching up” post…
Where did I go? nowhere. I am still in the same team, at Microsoft. Doing the same gig (working with big customers on the coolest apps that use any .NET client technology (including WPF, Silverlight, and a new addition Windows Phone)..
Why did not you call, email, or blog? At first, I was a bit too busy with events like PDC, CES and MIX preparation… After that, I was a bit consumed by Windows Phone but could not blog about it. i was also letting technology and demand take its course. You will hear more about it as I go.
How is the family? wife and kids are good. We moved (a whole 4 miles distance, but new school district). Samuel just finished basketball season, we are moving on to T-ball… Sophia is at a wonderful fun/loving age (almost 4); I am enjoying every minute since I already know time flies when your kids are young.
Now that you are back; are you going to blog more frequently and stick with it? I will try! Can’t guarantee it, but will give it a second run… I am super excited about what is coming down the pipeline at Microsoft and have lots of opinions and tips to share around that… Can we still email you or contact you via blog contact page? Yes, please do.. I would love ideas for topics to blog on, or questions on old posts.. stay tuned and you will hear I am adding technologies to my repertoire..
Thanks for reading [for those that stuck around :)]