Skip to content

andresd/Localization4WPF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Localization4WPF

A simple localization extension for WPF.

Nuget

http://www.nuget.org/packages/Localization4WPF/

Sample

<Window x:Class="DemoApplication.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:loc4wpf="http://schemas.denkberg.com/Localization4WPF/"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <loc4wpf:LocalizationConverter x:Key="LocalizationConverter"/>
    </Window.Resources>
    <Grid>
        <!-- Using Markup Extension -->
        <TextBlock Text="{loc4wpf:LocalizeString Key=MY_KEY}"/>
        
        <!-- Using a Converter (The BindedText is actually the Key of the resource string)-->
        <TextBlock Text="{Binding Path=BindedText, Converter={StaticResource LocalizationConverter}}"/>
    </Grid>
</Window>

About

A simple localization extension for WPF.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages