Pre loader

TooltipModifier's StringFormat

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hi,

I have been using below code to add Tooltip for a Scatter series and noticed that TooltipModifier’s StringFormat property does not respect System DateTime format.

<TextBlock FontSize="12" Foreground="WhiteSmoke" Text="{Binding XValue, StringFormat=X: {0:G}}" />

According to my regional settings it should be dd/mm/yyyy but it uses US culture settings (mm/dd/yyyy) somehow. Is there any way to specify the culture?

Thanks & Regards,
Charith

Images
  • You must to post comments
0
0

Hello Charith,

Thanks for the request. It seems to be WPF issue, please, take a look at these articles:
http://http://www.nbdtech.com/Blog/archive/2009/03/18/getting-a-wpf-application-to-pick-up-the-correct-regional.aspx ,

http://stackoverflow.com/questions/12560412/winrt-apps-and-regional-settings-the-correct-way-to-format-dates-and-numbers-ba .

Could you try any of the solutions proposed there? Please, let us know if this helps!

Best regards,
Yuriy

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies