1 posts, 0 answers
  1. Mallikarjun
    Mallikarjun avatar
    12 posts
    Member since:
    Jan 2011

    Posted 06 Dec 2011 Link to this post



    I want to localize the Silverlight application based on my xml files located on the server. I am inheriting the “LocalizationManager” class & overriding the “GetStringOverride” method. I have a WCF service that can read the xml file & return the resources collection. Obviously this will be a async call. My understanding is that we need to set the “LocalizationManager.Manager” static property with my class (inherited from “LocalizationManager” ) before calling the “InitializeComponent()” method. In the constructor of my class which is inhering the “LocalizationManager”, I make a WCF call to get the resources collection. Before I get the response from the WCF  service call, “InitializeComponent” method is fired where still my resource collection is empty & so I can’t see the localized content. Please let me know how can i achieve this scenario.

    public override string GetStringOverride(string key)
                string value;
                if (_LocalsResources.TryGetValue(key, out value))
                    return value;
                value = base.GetStringOverride(key);
                return value;



Back to Top