Localisation.WPF 0.5.1

dotnet add package Localisation.WPF --version 0.5.1
NuGet\Install-Package Localisation.WPF -Version 0.5.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Localisation.WPF" Version="0.5.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Localisation.WPF --version 0.5.1
#r "nuget: Localisation.WPF, 0.5.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Localisation.WPF as a Cake Addin
#addin nuget:?package=Localisation.WPF&version=0.5.1

// Install Localisation.WPF as a Cake Tool
#tool nuget:?package=Localisation.WPF&version=0.5.1

Localisation.WPF

Localisation library for WPF - use with ResxManager

Nuget NuGet

Usage

1. Create a new WPF project

2. Add a reference to the Localisation.WPF library

3. Add the ResxManager Visual Studio extension

4. Add a new resource file to the project

5. Add some resources to the resource file

6. Add the following to the project App.xaml.cs file to set the UI culture

using CP.Localisation;
using System.Globalization;

    public App()
    {
        CultureManager.UICulture = new CultureInfo("en-US");
        CultureManager.UICulture.SyncCultureInfo();
    }

7. Add the following to each xaml file to set the binding culture

    Language="{UICulture}"
    ResxExtension.DefaultResxName="YOUR.NAMESPACE.Properties.Resources"

8. Add the following Resx binding to each xaml element to set the binding to the current language value

    <TextBlock Text="{Resx YOUR_RESOURCE_NAME}" />
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net7.0-windows7.0 is compatible.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.1 165 1/4/2024
0.5.0 89 1/4/2024
0.1.0 159 5/9/2023

Compatability with Net 6/7/8 and net462