Silverlight Data and Controls Series
- Silverlight 4 Hands On Lab
- Silverlight 4 using MVVM Pattern, RIA Services and Custom Domain Service
- Silverlight Custom Authentication Domain Service with RIA Services
- Binding ComboBox and AutoComplete Controls in Silverlight DataGrid
- RIA Service Domain Service Method Life-Cycle
- Silverlight Localization and Resource Files
- Deep Dive into Custom RIA Service and Transactions
- Bind a Silverlight DataGrid Column to the User Control DataContext
- Project RIA Methods
- Silverlight RIA Data Validation Best Practices
Using Resource files and doing localization in Silverlight is not much different than way we have traditionally done it in the past. Instead of writing a long drawn out blog; here are the blogs on MSDN that are really straight forward and get you up and running in no time.
- Localizing Silverlight-based Applications - http://msdn.microsoft.com/en-us/library/cc838238(VS.95).aspx – Provides great background into how resources and localization works with Silverlight. Provides code that you can use in code behinds and services.
- How to: Add Resources to a Silverlight-based Application - http://msdn.microsoft.com/en-us/library/dd941931(v=VS.95).aspx – How to add a resource file.
- How to: Make XAML Content Localizable - http://msdn.microsoft.com/en-us/library/dd882554(v=VS.95).aspx – This shows how to use a resource file in an XAML file. There are a few extra steps that you will have to take. It follows the MVVM pattern.
- How to: Combine Localizable Strings at Run Time - http://msdn.microsoft.com/en-us/library/dd894493(v=VS.95).aspx – Shows how to string.format with values in your resx file. For instance "Welcome {0}". It is pretty simple; you just need to write a converter class.
- ResourceManager Class Reference- http://msdn.microsoft.com/en-us/library/system.resources.resourcemanager.aspx
Here are some other references in there you may find useful:
- How to: Make Rich Text Strings Localizable - http://msdn.microsoft.com/en-us/library/dd894487(v=VS.95).aspx
- How to: Make Non-String Values Localizable - http://msdn.microsoft.com/en-us/library/dd894492(v=VS.95).aspx
- How to: Make Non-Dependency Properties Localizable - http://msdn.microsoft.com/en-us/library/dd894491(v=VS.95).aspx
- How to: Make Properties Localizable with Static Resources - http://msdn.microsoft.com/en-us/library/dd894488(v=VS.95).aspx
- How to: Localize Information About an Out-of-Browser Application - http://msdn.microsoft.com/en-us/library/dd772170(v=VS.95).aspx
- How to: Create a Build that Targets a Specific Culture - http://msdn.microsoft.com/en-us/library/dd941932(v=VS.95).aspx
No comments:
Post a Comment