9,867,803 members (40,909 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
205 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 5
Page Size:
10
·
25
·
50
Author filtered by: Grant Frisken
[x]
Re: COMException and .NET 4.0 client profile issues not in latest download. New DataGrid column header question.
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Curious COMException for Language menu (non-fatal) and also a 4.0 client profile question.
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. I've tried replicating your problems using Visual Studio 2010 and
General Discussions
»
Article "Wpf Localization Using Resx Files"
Changing Your Application User Interface Culture On The Fly
by
Grant Frisken
Article
19 Feb 2013
license:
CPOL
Change the UICulture of your application forms without closing and recreating them
Languages
»
C#
»
Windows Forms
.NET2.0
VS2005
C#2.0
.NET3.0
C#3.0
.NET3.5
VS2008
C#
.NET
Visual-Studio
, +
WPF Localization Using RESX Files
by
Grant Frisken
Article
13 Feb 2013
license:
CPOL
Localize text, images, and any other WPF property using standard RESX files
Platforms, Frameworks & Libraries
»
Windows Presentation Foundation
»
General
C#3.0
C#
Windows
.NET
Architect
Dev
XAML
WPF
Intermediate
Advanced
, +
Re: Is it to possible to use an resx enum converter inside multibinding?
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: How do I access this from code behind or ViewModel
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Is it to possible to use an resx enum converter inside multibinding?
by
Grant Frisken
Forum Message
13 Feb 2013
You can email a zipped copy of it to me at grant@infralution.com Infralution - we provide .NET solutions:
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Is it to possible to use an resx enum converter inside multibinding?
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Problem switching Value binding at run-time
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Use of Simplified Chinese
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: What Microsoft really thinks about Windows 8
by
Grant Frisken
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
General Discussions
»
The Lounge
What Microsoft really thinks about Windows 8
by
Grant Frisken
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[
General Discussions
»
The Lounge
Re: Access Localised Text from Code-Behind
by
Grant Frisken
Forum Message
11 Jan 2013
This seems to be quite a common question. I really need an FAQ for this. See the following answer
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: creating a Resource resx file for an individual window
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Pre-initialization generation of language files
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Pre-initialization generation of language files
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Question after "Hiding Window RESX Files in the Visual Studio Solution Explorer"
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Nice article, but quick question...
by
Grant Frisken
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
General Discussions
»
Localizing .Net Enums
Re: Problem with GridViewColumn
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Great article! ..i have 2 problems (underscore as separator, enums with same name and value)
by
Grant Frisken
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
General Discussions
»
Localizing .Net Enums
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: How can I set this binding in code?
by
Grant Frisken
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:
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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:
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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.
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Great code, but some questions
by
Grant Frisken
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
General Discussions
»
Localizing .Net Enums
Re: Error at using Resx in templates
by
Grant Frisken
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 .
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Error at using Resx in templates
by
Grant Frisken
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.
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Can this extract localizable strings in the C# code?
by
Grant Frisken
Forum Message
18 May 2012
See the following FAQ on our forums: How do I localize hard coded strings?[
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: An alternative approach for enumerations
by
Grant Frisken
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
General Discussions
»
Article ".Net String Resources"
An alternative approach for enumerations
by
Grant Frisken
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
General Discussions
»
Article ".Net String Resources"
Re: Resources in class library
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Link to download source code - dead?
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Link to download source code - dead?
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: i m not able to use it with indian culture
by
Grant Frisken
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
General Discussions
»
Article "Changing Your Application User Interface Culture On The Fly"
Re: i m not able to use it with indian culture
by
Grant Frisken
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
General Discussions
»
Article "Changing Your Application User Interface Culture On The Fly"
Re: Using Resx in style blocks (setter.value)
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Using Resx in style blocks (setter.value)
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Using Resx in style blocks (setter.value)
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Re: Error at using Resx in templates
by
Grant Frisken
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
General Discussions
»
Article "Wpf Localization Using Resx Files"
Page 1 of 5
1
2
3
4
5
First
·
Prev
·
Next
·
Last
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