This project has moved. For the latest updates, please go here.

MultiLanguage support for PropertyGrid Category Headers and Description

Feb 22, 2013 at 5:24 AM
Hi,
I am using WPF Extended PropertyGrid in our project. We need to support multi language in our application. We found that when we change the language dynamically from UI (using ComboBox), only the properties are getting updated with the selected language strings but not the "Category Headers" and "Descriptions" within in the PropertyGrid. 
Below is the code snippet which we are using:
[AttributeUsage(AttributeTargets.All, AllowMultiple=false,Inherited=true)]
public class LocalizedCategoryAttribute : CategoryAttribute
{
    public LocalizedCategoryAttribute(string key) 
    {
    }

    protected override string GetLocalizedString(string value)
    {
        return TranslationManager.Instance.Translate(value, value).ToString();
    }
}

    [LocalizedCategory("Position")]
    [LocalizedDescription("WidthDescription")]
    [LocalizedDisplayName("Width")]
    public double Width
    {
        get
        {
            return Control.Placement.Width;
        }
        set
        {
            if (Width.Equals(value)) return;
             SetWidth(value);
        }
    }
Please let me know if there is any workaround for this problem.

Thanks,
Ram