O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dynamic Localizability—Updating the UI When the Culture Changes

The Windows Phone XAML data-binding infrastructure relies on change notification to signal that a property in a data-binding expression should be reevaluated. Generated resource designer classes do not provide change notification. Simply exposing the generated resource class for data-binding does not allow the UI to be updated when a culture change occurs at runtime. Therefore, some other means is required to update the UI when the app’s culture changes. This is the purpose of the custom BindableChangeNotifier class, shown in Listing 19.2. By using the BindableChangeNotifier class to wrap the resource’s designer class, change notification can be surreptitiously added for all properties. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required