Posted 15 years ago
by SledgeHammer01
Version: 9.2.0514
Platform: .NET 4.0
Environment: Windows XP (32-bit)

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]
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]