Does the WPF Dynamic Data Display support localization on-the-fly for line description?

Aug 7, 2009 at 10:16 PM

We have tried localization on-the-fly (switch language when application running) for WPF Dynamic Data Display.

It looks like that axis title which binding in xaml will work. However, line description which add in the code-behind does not work.

<font size="4">

plotter.AddLineGraph(rgvm.source1, SpeedColor, 2,

</font>

GeneralResource.RunGraph_Speed);

Is there way to make the line description also work for localization on-the-fly?

thx!

 

Editor
Aug 9, 2009 at 2:00 AM

Hi,

currently description of line graph doesn't support such localization.

Try to add all you line charts into some list and the change manually descriptions to translated ones.

This part of D3 will be changed to better in the future.

Mikhail.

Aug 10, 2009 at 3:58 PM

Hi Mikhail,

Thanks for your reply.

we do not have problem to change the line description's content after language change on-the-fly.

The problem is that we do not know how to update the line description after description content change.

Is there any function we can call?

thx!

 

Editor
Aug 12, 2009 at 2:51 AM

Hi Jane,

Hi, this part of D3 is a little bit undeveloped, but it is possible to do what you want.

Just execute this code where chart is a LineGraph which description you want to change:

 

chart.Description = new PenDescription("Chart2");

 

chart.Description = new PenDescription("Chart2");

Hope this'll help)

 

Regards,

Mikhail.

 

 

Editor
Aug 12, 2009 at 3:07 AM

Hi Jane,

I've created a project for you - it is in SourceCode/LatestChanegset (28448)/Nightly/.../DynamicDataDisplay.sln/Repros/DescriptionChangeOnTheFly.csproj.

Regards,

Mikhail Brinchuk.

Aug 12, 2009 at 9:31 PM

Hi Mikhail,

We follow your example and it works!

It seems we handle all localization cases so far.

Thanks very much!

Jane

Editor
Aug 21, 2009 at 11:26 AM

Hi Jane,

glad I was helpful)

Mikhail.