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

How to create a multiline ToolTipService.ToolTip text.

Hello,
I would like to have the Tooltip display a two-line text. I tried it with \r (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.
Thanks,
Will




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.

Regards,
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:

<ToolTipService.ToolTip>
    <TextBlock >The first line<LineBreak/>The second line</TextBlock>
</ToolTipService.ToolTip>

Thanks,

Will



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.
Regards,
Ashwini P.

Loader.
Live Chat Icon For mobile
Up arrow icon