Questions tagged [wpflocalizationextension]

WPF markup extension to read standard .NET resources into XAML.

See the project home.

11 questions
3
votes
1 answer

MarkupExtension: Converting a simple property to DependencyProperty

I'm using WPFLocalizationExtension (Available on CodePlex) to localize strings in my WPF application. This simple MarkupExtension works well in simple scenarios like this:
3
votes
1 answer

Using placeholders in XAML for WPF Localization Extension

I am using WPF Localization Extension in my program. To reduce the ammount of similar resources (like "Length in meters", "Length in Kilometers" and so on) I would like to use placeholders and set them in XAML Code. I thought about something like…
2
votes
2 answers

How to use Localization Extensions for Multi Language for DataGrid Columns in the Header

I’m writing a program with multi-language support and using the localization extension. In a label, button, or textbox everything performs correctly. Only the headers of a data grid don’t perform correctly. With the following code DataGridTextColumn…
Lotti1993
  • 31
  • 2
1
vote
2 answers

WPFLocalizationExtension with ItemTemplate

I'm using WPFLocalizationExtension for my WPF app. I have one ComboBox for languages selection. Item source is an ObservableCollection> as below: TITLE_LANGUAGE_ENGLISH : en TITLE_LANGUAGE_VIETNAMESE: vi-VN This is my…
Redplane
  • 2,971
  • 4
  • 30
  • 59
1
vote
0 answers

Creating Loc binding in code

How can I create a localization binding like {lex:LocTextUpper XXX} in code? I have controls that, for reasons of performance, I need to create in code rather than in XAML but I wouldn't like to lose the comfort of automatic string replacement on UI…
Gábor
  • 9,466
  • 3
  • 65
  • 79
1
vote
1 answer

Prevent Magic string with WPF Localization Extension

I'm developing a WPF Application where the user is able to change the Language at runtime. In C# Code (ViewModels etc.) I'm using the reference to the resource. For example: string translation = ScreenResources.WorkpieceDiameter; This is supporting…
Johannes Wanzek
  • 2,825
  • 2
  • 29
  • 47
1
vote
1 answer

WPF localization issue

For testing purpose, I'm trying to localize a dummy application, in order to see what match the best our needs. I wanted to try WPF Localization Extension. So I : Created a whole new WPF application, created a main windows. Added the references to…
J4N
  • 19,480
  • 39
  • 187
  • 340
0
votes
0 answers

Defining lex:ResxLocalizationProvider.DefaultAssembly="Localization" throws exception "Could not load the file Localization.resource.dll

Our project needs to be migrated to .NET6.We are using WPF Localization extension. What can be used for .NET6 project ? I'm using xmlns:lex="http://wpflocalizeextension.codeplex.com" and have defined…
0
votes
1 answer

WPFLocalizationExtension not translating first control (code behind)

So attempting to use the wpf localization extension. Our buttons / controls all have their IDs stored in the code behind, and as such I wound up creating a translations service to translate in the code behind also. So it just binds the completed…
user3265613
  • 355
  • 2
  • 14
0
votes
0 answers

Initializing Binded int Property Value in Caliburn does not map it to mahApps SplitButton SelectedIndex Property

I'm initializing the value like this: (MahApps.Metro 1.1.3-ALPHA) private int currentCulture; public int CurrentCulture { get { return currentCulture; } set { if (currentCulture != value) { currentCulture =…
0
votes
1 answer

Setting text Flow Direction for WPF Localization

I am using the WPF LocalizationExtension and could get it work. However, even though it says it has built in support for FlowDirection (righttoleft), I could not get it working and the documentation is not sufficient. I added the line…
noway
  • 2,585
  • 7
  • 41
  • 61