Click here to Skip to main content
Page 1 of 5
Page Size: 10 · 25 · 50


Author filtered by: Grant Frisken [x]
Forum Message 9 May 2013  
This question comes up so often that I probably need to change the article to deal with it explicitly. The DefaultResxName property (set on the window) only works for Framework Elements that belong t
Re: Thank You by Grant Frisken
Forum Message 8 May 2013  
Thanks. You are right - the hardest thing in software is to come up with a simple elegant solution - but I think simplicity is an extremely important metric because it makes it possible for a human w
Re: ToolTips? by Grant Frisken
Forum Message 8 May 2013  
Sorry I haven't replied earlier - but I didn't get an email from Code Project like I normally do for messages posted on the article. If you aren't defining the tooltip as a direct property on a frame
Forum Message 8 May 2013  
Sorry I haven't replied earlier - but I didn't get an email from Code Project like I normally do for messages posted on the article. I've tried replicating your problems using Visual Studio 2010 and
Article 19 Feb 2013   license: CPOL
Change the UICulture of your application forms without closing and recreating them
Article 13 Feb 2013   license: CPOL
Localize text, images, and any other WPF property using standard RESX files
Forum Message 13 Feb 2013  
Thanks for the sample code. The problem appears to be a change in the behaviour of the ConvertTo method in the system base EnumConverter class between .NET 3.5 and .NET 4. Multibindings which conta
Forum Message 13 Feb 2013  
To set the resx properties you need to to select the resx file in the Visual Studio Solution Explorer. Then in the Properties window you can set the "Custom Tool" and "Custom Tool Namespace" properti
Forum Message 13 Feb 2013  
You can email a zipped copy of it to me at grant@infralution.com Infralution - we provide .NET solutions:
Forum Message 12 Feb 2013  
This should be possible. I just modified the sample project to use multibinding: <TextBlock.Text> <Resx Key="ErrorMessageFormat"> <Resx BindingElement
Re: Relicensing by Grant Frisken
Forum Message 8 Feb 2013  
I don't think Code Project open license (CPOL) should be a barrier to using this inside a project where other parts of the code are governed by the Apache license (unless the Apache license prevents y
Forum Message 8 Feb 2013  
The way Style Setter properties are designed means that it is not possible to use Resx Extension with them and support dymanic language changing. See
Re: Encapsulate into DLL? by Grant Frisken
Forum Message 8 Feb 2013  
I'm not really sure what you mean. The Resx Extension is already in a separate DLL (Infralution.Localization.WPF). If you want to use one DLL to hold shared localized resources for an application
Forum Message 8 Feb 2013  
There is nothing particularly special about using simplified chinese resources. You just need to ensure that your computer locale is then set to either Chinese (Simplified, Singapore) or Chinese (Sim
Forum Message 25 Jan 2013  
That was a photo of the screen - I couldn't believe it. I guess they filter CAPTCHA for obscenities - but not for something like that. When I tried to actually type the CAPTCHA it rejected me. I
Forum Message 25 Jan 2013  
Just purchased a new HP all-in-one for my better half. While setting up her Windows 8 account we got presented with the following wonderful CAPTCHA[
Forum Message 11 Jan 2013  
This seems to be quite a common question. I really need an FAQ for this. See the following answer
Forum Message 27 Dec 2012  
Globalizer does this automatically for you when converting XAML to use the Resx Extension - however if you are not using Globalizer then you have to do this by manually editing the Visual Studio proje
Forum Message 12 Dec 2012  
OK - I thought you meant you were getting an Italian satellite assembly for your own project. The Infralution.Localization.Wpf assembly does have resources for French, German and Italian. If you do
Forum Message 12 Dec 2012  
Do you mean that satellite assemblies have been generated by the compiler for these cultures? Generally Visual Studio will only generate a satellite assembly for a culture if there are resources for
Forum Message 5 Dec 2012  
That's normal and not a problem. It is just warning that the resources file may have been generated by a tool. Infralution - we provide
Forum Message 28 Nov 2012  
I'm not sure why this would be happening for you. When I run the sample project and put a break point in the ConvertTo method the culture is correctly set to the CurrentThread.CurrentCulture. Are
Forum Message 22 Oct 2012  
The GridViewColumn is not a FrameworkElement and so the default ResxName set on the Window element won't work for this. You will need to set the ResxName attribute explicitly for the GridViewColumn
Forum Message 16 Oct 2012  
The first issue should not be a problem. The resource keys should just be MyEnum_Value_1 and MyEnum_Value_2. The second issue is only a problem if you want the translations to be different. You
Re: Visual Studio 2012 by Grant Frisken
Forum Message 7 Oct 2012  
Some further investigation reveals some interesting facts. There is no real difference between the sample project that ships with Globalizer and the sample project for the article. The difference
Forum Message 7 Oct 2012  
I'm not sure exactly what you mean. Can you give an example of what you want to do. Infralution - we provide .NET solutions:
Re: Visual Studio 2012 by Grant Frisken
Forum Message 4 Oct 2012  
I've just confirmed that XDesProc is indeed what is locking the application executable. If you kill this process you are then able to build with out the locked process errors. It seems like this sh
Re: Visual Studio 2012 by Grant Frisken
Forum Message 4 Oct 2012  
That's strange. When I loaded the Globalizer WPF 2010 project in VS2012 I was able to change languages without problems (select Other Cultures... then select French (France)). I did find there was a
Re: Visual Studio 2012 by Grant Frisken
Forum Message 3 Oct 2012  
I've just tested the download with VS2012 and there are some issues with changing language in the visual studio designer. Interestingly I first tried out VS2012 with the Infralution.Localization.Wpf
Re: Shares Resources by Grant Frisken
Forum Message 20 Sep 2012  
Yes you can use any resx file, so you could put common text into a separate resx file. Obviously you would have to specify the ResxName property explicitly for elements that use this. While this c
Re: FlowDirection by Grant Frisken
Forum Message 30 Aug 2012  
Make sure that you add a DefaultValue for the property eg FlowDirection="{Resx Key=Window.FlowDirection, DefaultValue=LeftToRight}" Generally you should always specify a De
Re: localizing bound values by Grant Frisken
Forum Message 5 Jul 2012  
Unfortunately there is no way to use a binding inside an extension for a key value. See the following thread for more detail:
Re: Templates by Grant Frisken
Forum Message 3 Jun 2012  
Yes but what were the details of the exception (the exception type and message)? A zipped copy of a project that exhibits the problem really makes it much easier for me to tell you what the problem
Re: Templates by Grant Frisken
Forum Message 3 Jun 2012  
What exception are you getting exactly? If you email me (grant at infralution.com) a small zipped project that demonstrates the problem then I will take a look at it.
Forum Message 28 May 2012  
If you want to sort the display values in a ComboBox or ListBox you can just set the Sorted property of the control to true. When the language is changed you have to reload the DataSource of the con
Forum Message 23 May 2012  
I think this is the same issue as raised by Gordon2001 in the thread above this one. See my responses there. Infralution - we provide .
Forum Message 21 May 2012  
If you are able to put together a small sample project that demonstrates the problem and email me a zipped copy (grant at infralution.com) then I will take a look.
Forum Message 18 May 2012  
See the following FAQ on our forums: How do I localize hard coded strings?[
Forum Message 1 May 2012  
You can actually localize enums in .NET Framework and 3rd party libraries using the LocalizedEnumConverter approach as well. You do it by registering the converter for the type eg
Forum Message 1 May 2012  
I might be missing something but it seems like you have to do quite a lot of hand coding of the strings wrapper classes using this approach. I use a different approach (see
Forum Message 24 Apr 2012  
The problem is most likely that the ResourceLib assembly is not loaded. The ResxExtension looks for the resource in the loaded assemblies. If you do not actually use any code from the ResourceLib
Re: FlowDirection by Grant Frisken
Forum Message 6 Apr 2012  
You might be able to bind the Window.FlowDirection to the boolean IsRightToLeft property using some form of converter - however I think it would be difficult and since the property doesn't support not
Forum Message 4 Apr 2012  
Mmm...I've just downloaded using Chrome without any issues. If you are still having issues then you can also download it from Infralution's website at
Forum Message 3 Apr 2012  
I just tried the link and it seems to be fine. The source code downloaded and the zip file opened without any problems. Infralution - w
Forum Message 30 Mar 2012  
Try setting the CultureInfo to Hindi before the InitializeComponent method in the Constructor of the main form eg public MainForm() { CultureManager.App
Forum Message 29 Mar 2012  
I think you'd find authors more inclined to help you if you didn't downvote their articles before asking for assistance. I'm assuming your actual culture is hindi - is that correct? I just added
Forum Message 22 Mar 2012  
You don't have to define the Converter and resources in the same assembly as the enum. You can define them in GUI library. You don't need to put the TypeConverter attribute on the enum in order to u
Forum Message 21 Mar 2012  
Thanks for sending the code it helps to understand what you are trying to do. I don't see any easy way of getting the Resx Extension to work as you want in Style Setter properties (at least not wit
Forum Message 19 Mar 2012  
Hi Steffen, Do you think you could put together a small self contained sample project that includes something like this. If you can email a zipped copy of that to me then I will take a look and s
Forum Message 19 Mar 2012  
I was able to replicate this issue. The fix is to change the RegisterTarget method to check for Template targets. In this case the ProvideValue function then returns "this". See the modified cod

Page 1 of 5
1 2 3 4 5


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid