This is a migrated thread and some comments may be shown as answers.

Quick Access Tool bar ScreenTip position bug

6 Answers 125 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Dodd
Top achievements
Rank 1
Dodd asked on 05 Mar 2015, 09:34 AM
Hi, I use RadRibbonWindow and when I hover on the Quick Access Tool Bar buttons, screen tips appear in a far lower position as in the image.
How can I fix this?

6 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 09 Mar 2015, 03:11 PM
Hi Dodd,

The screen tips of the ribbonview components always displays bellow the ribbonview control. This behavior is expected and it can be observed also in the Microsoft's Office applications that contains a ribbon (like Word) which was used as a design reference for our RadRibbonView.

In order to add a tooltip on the mouse position you can use our RadToolTipService instead of the screen tips.
<Button telerik:RadToolTipService.ToolTipContent="I am a tooltip" />

Regards,
Martin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Wayne
Top achievements
Rank 1
answered on 24 Feb 2016, 06:44 AM

Hi Martin,

Which versions of Office have the behavior where the Quick Access Toolbar tooltip displays below the ribbon like that?

I checked Office 2010 and Office 2013 and neither behave the way you suggest. It immediately felt like a bug when I saw it, to be honest.

Also the work around you provide doesn't seem to work, or at least I can't get it to work, when also wanting to keep the multi-line tooltip like Dodd had pictured. It only seems to support single line tool tips.

I am just writing this reply to help others in future. I found an easy fix for the placement behavior by writing this code:

        private void SetScreenTipPlacement(FrameworkElement element)
        {
            const double X_Y_OFFSET = 10.0;
            element.SetValue(ScreenTip.PlacementProperty, System.Windows.Controls.Primitives.PlacementMode.MousePoint);
            element.SetValue(ScreenTip.VerticalOffsetProperty, X_Y_OFFSET);
            element.SetValue(ScreenTip.HorizontalOffsetProperty, X_Y_OFFSET);    
        }

0
Martin Ivanov
Telerik team
answered on 28 Feb 2016, 11:57 AM
Hello Wayne,

It seems you are right, the screen tips of the Quick Access Toolbar in Microsoft Office don't display below the ribbon. Please excuse me for misleading you.

As for the workaround, thank you for sharing it with the UI for WPF community.

Regards,
Martin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Efi
Top achievements
Rank 1
answered on 01 Jun 2017, 04:27 PM

Hi,
This bug still exist in "Expression Dark" theme.
The solution doesn't work for me.
I also tried to override the style Placement to be alwyas Mouse and it doesn't help.

  <Style x:Key="ScreenTipStyle" TargetType="telerikRibbonView:ScreenTip">

        <Setter Property="Placement" Value="Mouse"/>

        <Setter Property="Template" Value="{StaticResource ScreenTipTemplate}"/>
        <Setter Property="Background" Value="{StaticResource QuickAccessKeyHintBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource QuickAccessKeyHintBorderBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource QuickAccessKeyHintForegroundBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>

    </Style>

0
Martin Ivanov
Telerik team
answered on 06 Jun 2017, 09:16 AM
Hello Efi,

To achieve your requirement and alter the default positioning behavior of the screentips, you can use the Wayne's workaround.

Setting the Placement in a Style won't work because a local setting in the ScreenTip service overrides it. In other words you should do it in code. You can check the attached project.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Efi
Top achievements
Rank 1
answered on 07 Jun 2017, 04:58 PM

This one work fine.

Thanks a lot.

Tags
RibbonView and RibbonWindow
Asked by
Dodd
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Wayne
Top achievements
Rank 1
Efi
Top achievements
Rank 1
Share this question
or