We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to create a multiline ToolTipService.ToolTip text.

I would like to have the Tooltip display a two-line text. I tried it with \r\n (and similar combinations) but they came out as regular text. The text did spill over to a second line at some random spot after about 25 characters.

3 Replies

VR Venkateshwaran Ramdoss Syncfusion Team March 23, 2016 12:34 PM UTC

Hi Will,

We have prepared a sample based on your requirement. In this sample, we have added multiple line ToolTip for Carousel Item using LineBreak in TextBlock. Please download the sample from below attachment.

Please let us know if you need further assistance.

Venkateshwaran V.R.

Attachment: Multilinetooltip_f5c3cd49.zip

WA Will Autio March 23, 2016 03:54 PM UTC

Hi Venkateshwaran,

Thanks for the demo - it works great! and I appreciate the detail which you added to show a bit the complexity that can go into a simple ToolTip. 

This is what I ended up doing:

    <TextBlock >The first line<LineBreak/>The second line</TextBlock>



AP Ashwini Paranthaman Syncfusion Team March 24, 2016 04:46 AM UTC

Hi Will,
Thank you for the update.
We are glad that your issue has been fixed.
Please let us know if you need any other assistance.
Ashwini P.

Live Chat Icon For mobile
Up arrow icon