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

KeyTip doesn't appear for RadRibbonButton

2 Answers 58 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 20 Jun 2012, 02:05 PM
Hi guys!

I want to show KeyTips to the users but I don't get it working.
It works for the QuickAccessToolbar but not for a simple RibbonButton?
I don't see any differences concerning the demo apps. What's wrong?

Thanks!

Here is the code im using:

<
telerik:RadRibbonWindow x:Class="WpfApplication4.MainWindow"         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"         xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"         WindowStartupLocation="CenterScreen"         WindowState="Maximized"         mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008">     <Grid>         <Grid.RowDefinitions>             <RowDefinition Height="Auto"/>             <RowDefinition Height="*"/>             <RowDefinition Height="Auto"/>         </Grid.RowDefinitions>         <telerik:RadRibbonView HorizontalContentAlignment="Stretch" Title="Testapp"                                 x:Name="RadRibbonView" telerik:KeyTipService.IsKeyTipsEnabled="True">             <telerik:RadRibbonView.QuickAccessToolBar>                 <telerik:QuickAccessToolBar Margin="15,0,0,0">                     <telerik:RadRibbonButton Text="Save"                              telerik:KeyTipService.AccessText="1" Click="RadRibbonButton_Click" />                     <telerik:RadRibbonButton Text="Undo" telerik:KeyTipService.AccessText="2" />                     <telerik:RadRibbonButton Text="Print" telerik:KeyTipService.AccessText="3" />                 </telerik:QuickAccessToolBar>             </telerik:RadRibbonView.QuickAccessToolBar>              <telerik:RadRibbonTab Header="testtab" telerik:KeyTipService.IsKeyTipsEnabled="True">                 <telerik:RadRibbonGroup Header="testgroup" >                     <telerik:RadRibbonButton Text="Test" telerik:KeyTipService.AccessText="T" Click="RadRibbonButton_Click"/>                 </telerik:RadRibbonGroup>             </telerik:RadRibbonTab>         </telerik:RadRibbonView>         <Grid Grid.Row="1">             <Grid.ColumnDefinitions>                 <ColumnDefinition Width="Auto"/>                 <ColumnDefinition Width="*"/>             </Grid.ColumnDefinitions>         </Grid>     </Grid> </telerik:RadRibbonWindow>

2 Answers, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 22 Jun 2012, 06:30 PM
Hi Daniel,

what functionality are you trying to achieve? I recommend using <telerik.ScreenTip > instead of KeyTip.  This documentation will show you how to implement it quickly and easilly.

Good Luck,
Lancelot
0
Accepted
Petar Mladenov
Telerik team
answered on 25 Jun 2012, 08:16 AM
Hi Daniel,

You need AccessText set both on the RibbonTab and RibbonGroup which are parents of your RibbonButton.
The path to your Button goes at least with pressing the AccessText of  the Tab:

<telerik:RadRibbonTab Header="testtab" telerik:KeyTipService.IsKeyTipsEnabled="True"
                    telerik:KeyTipService.AccessText="A">
                <telerik:RadRibbonGroup Header="testgroup" telerik:KeyTipService.IsKeyTipsEnabled="True"
                        telerik:KeyTipService.AccessText="B">
                    <telerik:RadRibbonButton Text="Test" telerik:KeyTipService.AccessText="C"
                            telerik:KeyTipService.IsKeyTipsEnabled="True" />
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>

Kind regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RibbonView and RibbonWindow
Asked by
Daniel
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or