This is a migrated thread and some comments may be shown as answers.

How to have newlines in ItemToolTipFormat when using XAML?

2 Answers 84 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Rodney Foley
Top achievements
Rank 1
Rodney Foley asked on 09 Nov 2010, 12:13 AM
Greetings when I set the ItemToolTipFormat in XAML it wont accept \n or \r\n for newlines.  However in examples from Telerik when you provide those in the code behind they seem to work.  However I don't want to put it in the code behind, I want to set it declaratively.  Please let me know how to get new line characters into the ItemToolTipFormat declaratively, thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Evgenia
Telerik team
answered on 10 Nov 2010, 12:20 PM
Hello Rodney,

Take a look at this discussion - http://stackoverflow.com/questions/183406/xaml-newline-in-string-attribute as it will help you to set new lines in Tooltips declaratively.
I hope this gets you started properly.

Regards,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Rodney Foley
Top achievements
Rank 1
answered on 10 Nov 2010, 05:36 PM
Thank you very much Evgenia!

To sum up so the answer is in the post itself you have to use the Html Code: "
"

PS: On a side note but somewhat related I asked another question about Chart Tooltips I am waiting for an answer and maybe you may know the answer or someone who does.
Tags
Chart
Asked by
Rodney Foley
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Rodney Foley
Top achievements
Rank 1
Share this question
or