This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
My application is required to support about 6 languages including Chinese (double byte). I would like to know if this is possible and how it would be done. If possible an example is greatly appreciated. Thanks, |
|
|
It depends what you are trying to do. If you are talking about localising/globalising property names, this is not directly supported because the names are taken from the property metadata, or from the DisplayNameAttribute if present, and these are not localised. However, you can create a simple localisation facility by setting the PropertyNameTemplate to your own custom DataTemplate. In this DataTemplate, you can use an IValueConverter (or whatever) to translate the property information into a localised form by consulting a resource file, a custom attribute or however you prefer to store the localised names. Your DataTemplate will receive a PropertyGridRow so use the Node.Property path to get to the property metadata which you can then feed into your value converter. |
|