DropDownButton with RadContextmenu and keyhandling

2 posts, 0 answers
  1. Ronald
    Ronald avatar
    12 posts
    Member since:
    Aug 2010

    Posted 07 Feb 2012 Link to this post

    Hi,

    I am using a DropDownbutton with a RadContextmenu. When using Accesskey on the RibbonView/DropDownbutton/RadContextmenu. De access keys don't show on the submenu of the RadContextmenu. A made a sample to demonstrate this:

    <Window x:Class="WpfRibbonMenuKeys.MainWindow"
            Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
        <Grid>
            <telerik:RadRibbonView Name="radRibbonView1" VerticalAlignment="Top" telerik:KeyTipService.IsKeyTipsEnabled="True">
                <telerik:RadRibbonTab Header="RibbonTab"  telerik:KeyTipService.AccessText="H">
                    <telerik:RadRibbonGroup Header="SomeGroup" telerik:ScreenTip.Title="SomeGroup" DialogLauncherVisibility="Collapsed" >
                        <telerik:RadRibbonDropDownButton Text="DropDown"
                                                         Size="Large"
                                                         telerik:KeyTipService.AccessText="S">
                            <telerik:RadRibbonDropDownButton.DropDownContent>
                                <telerik:RadContextMenu >
                                    <telerik:RadMenuItem Header="Test1" telerik:KeyTipService.AccessText="1"/>
                                    <telerik:RadMenuItem Header="Test2" telerik:KeyTipService.AccessText="2">
                                        <telerik:RadMenuItem Header="Test2.1" telerik:KeyTipService.AccessText="21"/>
                                        <telerik:RadMenuItem Header="Test2.2" telerik:KeyTipService.AccessText="22"/>
                                        <telerik:RadMenuItem Header="Test2.3" telerik:KeyTipService.AccessText="23"/>
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem Header="Test3" telerik:KeyTipService.AccessText="3"/>
                                </telerik:RadContextMenu>
                            </telerik:RadRibbonDropDownButton.DropDownContent>
                        </telerik:RadRibbonDropDownButton>
                    </telerik:RadRibbonGroup>
                </telerik:RadRibbonTab>
            </telerik:RadRibbonView>
        </Grid>
    </Window>

    The menuitems Test2.1, Test 2.2 and Test 2.3 don't show access keys. Also when having used access keys, it is not possible to use the arrow keys to navigate through the contextmenu. So when using Alt-H-S-2, in the sample, the submenu is opened, but further keyhandling is not respected.

    Regards,
    Ronald
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 10 Feb 2012 Link to this post

    Hi Ronald,

    Thank you for bringing this issue to our attention. I logged it in our PITS where you can track its progress (the item is logged both for WPF and Silverlight even though in PITS the product says only Silverlight). I also updated your Telerik account accordingly.

    Please accept our apology for this inconvenience.

    All the best,
    Tina Stancheva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top