Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1470
Problem with xamPivotGrid samples
posted

Hello

Since some time i cannot open some of the xamPivotGrid samples anymore. When i click on xamPivotGrid > Display > FlatData Aggregators, the sample browser shows a message, saying: "There is an unexpected problem with the application. Please contact application support if the problem continues. The Ressource "assets/de/sales.xml" cannot be found."

I checked for this sales.xml in the sample solution and found it in the folder "EN". And then i checked the loading of it in: IGPivotGrid.Samples.Controls.SalesCollection. And when i comment out the line: 

xmlLocation = xmlLocation.Replace("EN", Thread.CurrentThread.CurrentUICulture.Name.Substring(0, 2).ToUpper());

(Which should change the language from EN to DE.)

the sample solution works again. But obviously, the sample browser itself still has the problem.

Where is the source of the problem?!

Parents
  • 17475
    Offline posted

    Hello Christian,

    The WPF Samples Browser solution uses the US culture which is the default one for WPF. Since we support a Japanese version of the WPF Samples Browser the line of code you have mentioned:
    xmlLocation = xmlLocation.Replace("EN", Thread.CurrentThread.CurrentUICulture.Name.Substring(0, 2).ToUpper());
    changes the path to point the Japanese xml file so the samples are displayed according to that culture.

    Do you override the culture settings for the WPF Samples Browser application? Since the issue has recently appeared on your side I will need some details on whether you have applied any changes to the WPF Sample Browser solution or whether you have modified your OS culture settings.

    Please feel free to let me know if you have any other questions.

Reply Children