Completed
Last Updated: 27 Oct 2021 13:35 by ADMIN
Release LIB 2021.3.1101 (1 Nov 2021)
Franz
Created on: 20 Oct 2021 08:41
Category: ContextMenu
Type: Bug Report
1
ContextMenu: Menu items do not show their tooltip in the Fluent theme

When opening the ContextMenu and hovering over the first Item no Tooltip is displayed. Only when you move the mouse over another MenuItem on the same ContextMenu and then back to the first one the Tooltip gets displayed.

As a workaround, the telerik:RadToolTipService.ToolTipContent property can be used:

<telerik:RadMenuItem Header="I should display a tooltip" telerik:RadToolTipService.ToolTipContent="I am the tooltip that never shows" />

The template of the tooltip can also be modified to match the default tooltip style:

    <Style TargetType="telerik:RadMenuItem" BasedOn="{StaticResource RadMenuItemStyle}">
        <Setter Property="telerik:RadToolTipService.ToolTipContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border
                                Background="{telerik:FluentResource ResourceKey=PrimaryBackgroundBrush}"
                                BorderBrush="{telerik:FluentResource ResourceKey=BasicBrush}"
                                BorderThickness="1"
                                SnapsToDevicePixels="True">
                        <ContentPresenter Content="{Binding}" Margin="5"/>
                    </Border>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

0 comments