The ScreenTips , how to make them wider!?

Ribbon for WPF Forum

Posted 1 year ago by UI-UX
Version: 22.1.4
Avatar

I am using this feature:  https://www.actiprosoftware.com/docs/controls/wpf/ribbon/layout-features/screen-tips

My xaml looks like this:

 xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"

 ..

<Button ribbon:ScreenTipService.ScreenTipHelpUri="custom_link_007" ribbon:ScreenTipService.ScreenTipDescription="..."/>

 ..

Issue:  when we hover on the button we see the screentip-pop with 'The Press F1 for more help', this gets cut off if the sentence is longer, lets say when we use different ui locale. Is there any way we can make the width dynamic!?  Thanks..

Sample: https://ibb.co/jgnSm4v

[Modified 1 year ago]

Comments (5)

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Our default Style/Template for ScreenTip sets it to the appropriate Width per Microsoft's guidelines on screen tips. 

You could add something like the following to your App.Resources to make it more dynamic.  And possibly add MinWidth or MaxWidth Setters as well if you wanted to restrict the dynamic sizing.

<Style TargetType="ribbon:ScreenTip">
  <Setter Property="Width" Value="Auto" />
</Style>


Actipro Software Support

Posted 1 year ago by UI-UX
Avatar

Thanks for the reply.

Auto makes the whole pallete wider. Can we make just make the 'The Press F1 for more help' part to Wrap ?

Thanks.

Answer - Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

You could also set a MaxWidth if you wanted to limit how wide things can grow.  But as you suggested, we will update the ScreenTip help text string to wrap for the next maintenance release in case it does extend past the width of the ScreenTip.


Actipro Software Support

Posted 1 year ago by UI-UX
Avatar

Appreciate that you can fix it in your next release. A lot of my ui controls are based on this screentip.

Can you please let me know your planned version number/build where this fix will be available!! 

Thanks.

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Yes, it would be v22.1.5 unless v23.1 comes out before that.


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.