How to have newlines in ItemToolTipFormat when using XAML?

3 posts, 1 answers
  1. Rodney Foley
    Rodney Foley avatar
    72 posts
    Member since:
    Oct 2009

    Posted 08 Nov 2010 Link to this post

    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. Answer
    Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 10 Nov 2010 Link to this post

    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
  3. Rodney Foley
    Rodney Foley avatar
    72 posts
    Member since:
    Oct 2009

    Posted 10 Nov 2010 Link to this post

    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.
Back to Top