Archive for May, 2011

Localization in WP7

I just wrote a blog on how I localized a WPF application in a nice way. You can read that post here: Localization in WPF

What about Windows Phone , how to do localization for Windows Phone? Microsoft has some great articles about localization for Windows Phone. You can read them here: Globalization and Localization for Windows Phone. They give you some good best practices and also one way of doing localization, although I would like to do localization in a similar way as I did for WPF, and lucky me you can do that! :)

Let’s go through step-by-step how I did it.

Continue reading

Advertisements

Localization in WPF

I just got a question at work about how to do Localization in WPF, and fortunately we have done a pretty nice solution to that I must say. So why not post that here as well.

First of all, there are several ways to achieve localization in WPF, you can read Microsoft’s way of doing it here http://msdn.microsoft.com/en-us/library/ms788718.aspx . But I would like to do it in a somewhat different way. In my WPF application I use the MVVM design pattern, so wouldn’t it be nice if all resources are accessable through the View’s datacontext? So that you can data bind to the resource strings in the same way as you data bind to all other data in the ViewModel.

I’ll try to explain it for you here and provide you with some code snippets.

Continue reading

iPhone/iOS to Windows Phone 7 API Mapping


This is actually something that I think is another good way of getting more apps that only exists on the iPhone to WP7. Microsoft announced a few days ago about a new tool called API Mapping that helps iPhone developers to migrate their applications to Windows Phone. We know Angry Birds is just around the corner, but with this new tool hopefully more quality apps that only exist on the iPhone are also coming to WP7.

The first thing that strikes me is if you follow this tool to migrate your iOS application to WP7 will it be good enough? What is the end result when thinking about performance, resource usage etc. Well the first version only addresses mappings that exists basically one-to-one, giving you C# sample code and API documentation for both platforms. So this tool gets you started and helps you in the migration process to quickly migrate short blobs of iOS code to the equivalent C# code. So it will “probably” not be an issue :)

In the upcoming Mango update to WP7 we will also have an Awesome! profiler for Windows Phone 7! The SDK is said to be released soon, in May, and we can start profiling our WP7 apps targeting Mango!

According to the Windows Phone developer blog, this is just the start, and they are also planning on a similar tool targeting Android!

Read more at the Windows Phone 7 Interoperability site

Advertisements
%d bloggers like this: