Hi,
I have an issue with the chart annotations when I set the Culture to "es-ES". The annotations are rendered/plotted in the incorrect location on the chart. I will ultimately need to switch the culture at run-time.
The Culture is set in App.xaml.cs.
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
//Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("es-ES");
Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture;
base.OnStartup(e);
}
}
Please find sample attached.
Regards,
Maurizio
Attachment: Testing_WFP_Charts_23adf6a4.rar
Hi,
Ok, I figured out the issue. I was hard-coding the Y value of the annotations, and this must have been causing a parsing exception. Now I'm binding the Y Values to static properties and all seems good.
The problem I'm having now is that when I change the language/culture at run-time (via buttons at the side of the chart), the Text Annotations disappear.
Do you have any idea why this is happening?
Please find updated sample attached.
Regards,
Maurizio
Attachment:
20170118_Testing_WFP_Charts_8f7ded0f.rar