BUG: line break in tooltip (via XAML) broken

Ribbon for WPF Forum

Posted 9 years ago by SledgeHammer01
Version: 9.2.0514
Platform: .NET 4.0
Environment: Windows XP (32-bit)
Avatar
Setting the following ScreenTipDescription via C# works fine:

zoomButton.ScreenTipDescription = "Open the Zoom dialog box to specify the zoom level of the document." + System.Environment.NewLine + System.Environment.NewLine + "In most cases, you can also use the zoom controls in the status bar at the bottom of the window to quickly zoom the document.";

However, specifying the ScreenTipDescription and line breaks via XAML results in a jumbled / incorrectly sized tooltip. That is, embedding a TextBlock tag to allow for the <LineBreak /> tag:

<ribbon:Button Name="zoomButton" Label="Zoom" ImageSourceLarge="/TemplateMgr;component/Resources/Zoom32.png" Command="local:ApplicationCommands.ShowDialog" CommandParameter="Zoom" KeyTipAccessText="Z">
<ribbon:Button.ScreenTipDescription><TextBlock>Open the Zoom dialog box to specify the zoom level of the document.<LineBreak /><LineBreak />In most cases, you can also use the zoom controls in the status bar at the bottom of the window to quickly zoom the document.</TextBlock></ribbon:Button.ScreenTipDescription>
</ribbon:Button>

Doesn't seem to be a way to email / post screenshots and I don't have anywhere public I can post them.


[Modified at 03/05/2010 05:01 PM]

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Screen tips have specific widths that Microsoft's requirements say they must be in certain scenarios. We are simply setting the screentip width appropriately.

If you add TextWrapping="Wrap" to your TextBlock it will work fine.


Actipro Software Support

The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.