Click here to Skip to main content
15,887,386 members
Articles / Desktop Programming / WPF

WPF Localization Using RESX Files

Rate me:
Please Sign up or sign in to vote.
4.99/5 (114 votes)
29 Nov 2015CPOL14 min read 2.4M   22.8K   315  
Localize text, images, and any other WPF property using standard RESX files
<?xml version="1.0"?>
<doc>
<assembly>
<name>
WpfApp
</name>
</assembly>
<members>
<member name="M:WpfApp.MainWindow.InitializeComponent">
	<summary>
InitializeComponent
</summary>
</member><member name="T:WpfApp.MainWindow">
	<summary>
MainWindow
</summary>
</member><member name="M:WpfApp.XamlGeneratedNamespace.GeneratedInternalTypeHelper.CreateInstance(System.Type,System.Globalization.CultureInfo)">
	<summary>
CreateInstance
</summary>
</member><member name="M:WpfApp.XamlGeneratedNamespace.GeneratedInternalTypeHelper.GetPropertyValue(System.Reflection.PropertyInfo,System.Object,System.Globalization.CultureInfo)">
	<summary>
GetPropertyValue
</summary>
</member><member name="M:WpfApp.XamlGeneratedNamespace.GeneratedInternalTypeHelper.SetPropertyValue(System.Reflection.PropertyInfo,System.Object,System.Object,System.Globalization.CultureInfo)">
	<summary>
SetPropertyValue
</summary>
</member><member name="M:WpfApp.XamlGeneratedNamespace.GeneratedInternalTypeHelper.CreateDelegate(System.Type,System.Object,System.String)">
	<summary>
CreateDelegate
</summary>
</member><member name="M:WpfApp.XamlGeneratedNamespace.GeneratedInternalTypeHelper.AddEventHandler(System.Reflection.EventInfo,System.Object,System.Delegate)">
	<summary>
AddEventHandler
</summary>
</member><member name="T:WpfApp.XamlGeneratedNamespace.GeneratedInternalTypeHelper">
	<summary>
GeneratedInternalTypeHelper
</summary>
</member><member name="M:WpfApp.Application.InitializeComponent">
	<summary>
InitializeComponent
</summary>
</member><member name="M:WpfApp.Application.Main">
	<summary>
Application Entry Point.
</summary>
</member><member name="T:WpfApp.Application">
	<summary>
Application
</summary>
</member><member name="P:WpfApp.My.MyWpfExtension.Application">
	<summary>
 Returns the application object for the running application
 </summary>
</member><member name="P:WpfApp.My.MyWpfExtension.Computer">
	<summary>
 Returns information about the host computer.
 </summary>
</member><member name="P:WpfApp.My.MyWpfExtension.User">
	<summary>
 Returns information for the current user.  If you wish to run the application with the current 
 Windows user credentials, call My.User.InitializeWithWindowsUser().
 </summary>
</member><member name="P:WpfApp.My.MyWpfExtension.Log">
	<summary>
 Returns the application log. The listeners can be configured by the application's configuration file.
 </summary>
</member><member name="P:WpfApp.My.MyWpfExtension.Windows">
	<summary>
 Returns the collection of Windows defined in the project.
 </summary>
</member><member name="T:WpfApp.My.MyWpfExtension">
	<summary>
 Module used to define the properties that are available in the My Namespace for WPF
 </summary>
	<remarks></remarks>
</member><member name="T:WpfApp.SampleEnum">
	<summary>
 Sample enum illustrating used of a localized enum type converter
 </summary>
</member><member name="M:WpfApp.SampleEnumConverter.#ctor">
	<summary>
 Create a new instance of the converter using translations from the given resource manager
 </summary>
	<remarks></remarks>
</member><member name="T:WpfApp.SampleEnumConverter">
	<summary>
 Define the type converter for the Sample Enum
 </summary>
	<remarks></remarks>
</member><member name="P:WpfApp.My.Resources.Resources.ResourceManager">
	<summary>
  Returns the cached ResourceManager instance used by this class.
</summary>
</member><member name="P:WpfApp.My.Resources.Resources.Culture">
	<summary>
  Overrides the current thread's CurrentUICulture property for all
  resource lookups using this strongly typed resource class.
</summary>
</member><member name="P:WpfApp.My.Resources.Resources.SampleEnum_Large">
	<summary>
  Looks up a localized string similar to Large.
</summary>
</member><member name="P:WpfApp.My.Resources.Resources.SampleEnum_Medium">
	<summary>
  Looks up a localized string similar to Medium.
</summary>
</member><member name="P:WpfApp.My.Resources.Resources.SampleEnum_Small">
	<summary>
  Looks up a localized string similar to Small.
</summary>
</member><member name="P:WpfApp.My.Resources.Resources.SampleEnum_VeryLarge">
	<summary>
  Looks up a localized string similar to Very Large.
</summary>
</member><member name="P:WpfApp.My.Resources.Resources.SampleEnum_VerySmall">
	<summary>
  Looks up a localized string similar to Very Small.
</summary>
</member><member name="T:WpfApp.My.Resources.Resources">
	<summary>
  A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
</members>
</doc>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Infralution
Australia Australia
I am currently the Software Architect at Infralution. Infralution develops .NET components and solutions including:

Globalizer - localization for .NET made easy. Let your translators instantly preview translations and even build the localized version of your application without giving away your source code.

Infralution Licensing System - simple, secure and affordable licensing for .NET apps and components

Virtual Tree - superfast, flexible, databound tree/list view

Comments and Discussions