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?!
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.
I did not any changes in the WPF Samples Browser application/solution, except the one i mentioned in the previous post.
But last week i switched the OS culture back and forth to test some other stuff. But the problem occured before then and remained, after i switched it back to the OS culture i had before (EN).
Hello Christian,The xmlLocation should be set to its default path in the EN folder since the current culture is EN as you have mentioned. I have changed the OS current culture and then set it back to English on my machine and the Sales.xml file was found in the EN folder. I have tested this with the WPF Samples Browser 16.2. Do you use the same version? If you are using the same version and the issue was presented, I would suggest re-installing the application.If you have any questions, do not hesitate to ask.