We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Assigned InputGestureText is not displayed in menu

As the subject says, menu items are not showing the InputGestureText. I have a menu defined as:

<sfmenu:SfMenu x:Name="mainMenu">
     <sfmenu:SfMenuItem x:Name="fileMenu" Header="File" AccessKey="F">
          <sfmenu:SfMenuItem x:Name="newDocMenu" Header="New" InputGestureText="Ctrl + N"/>

As expected, the Access Key is displayed when the ALT key is pressed. However, the sub menu items show only the Header. For example, using the above XAML, I would expect the menu item to display "New CTRL + N"; however, it is only displaying "New".

2 Replies

TB Thirupathi Bala Krishnan Syncfusion Team July 19, 2019 12:54 PM UTC

Hi Chris,

We are able to reproduce the reported issue “InputGestureText is not displayed in the sub menu items” in our end and we have logged an issue report for the same. We will provide the patch file for the reported issue on 2nd August, 2019. Here we have provided private feedback link, we request you to log in to view the link further.

Feedback link: https://www.syncfusion.com/feedback/7621/inputgesturetext-is-not-displayed-in-sub-menu-items

The fix will be available in our next main release Volume 3 which is scheduled to be rolled out in September, 2019. If you have any more specification replication procedure or a scenario to be tested you can add it as a comment in the portal.

Please let us know if you need any further assistance.

Thirupathi B.

JP Jagadeesan Pichaimuthu Syncfusion Team August 2, 2019 10:29 AM UTC

Hi Chris, 
Thanks for your patience.     
We have fixed the below reported issue “Unable to collapse the first row headers by using context menu” in your reported version Please refer the screenshot for your reference. 

You can find out the notification while pressing the shortcut keys by using Invoked event. In below example, KeyboardAccelerator_Invoked event handler raised, while pressing the Ctrl and N keys.
Key - the VirtualKey used for the keyboard accelerator. 
Modifiers – the VirtualKeyModifiers used for the keyboard accelerator. If Modifiers is not set, the default value is None.
Invoked event of the KeyboardAccelerator object is fired when the accelerator is executed. Please refer the following code sample to invoke a keyboard accelerator. 
# MainPage.xaml 
      <menu:SfMenu  x:Name="menu" HorizontalAlignment="Left"VerticalAlignment="Top"> 
            <menu:SfMenuItem x:Name="file" Header="File" AccessKey="F" > 
                <menu:SfMenuItem Header="New" InputGestureText="Ctrl + N" > 
                        <KeyboardAccelerator Key="N" Modifiers="Control"Invoked="KeyboardAccelerator_Invoked"/> 

# MainPage.xaml.cs

        private void KeyboardAccelerator_Invoked(KeyboardAccelerator sender, KeyboardAcceleratorInvokedEventArgs args) 
            var dialog = new MessageDialog("New item clicked"); 

Please find the patch file from the following location. 
Recommended approach – exe will perform automatic configuration             
Please find the patch setup here:                                   
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment                              
Please find the patch assemblies alone from:              
Please find the Nugets from the below location:             
You can change how you receive bug fixes by navigating to the following link and updating your preferences.
Please note that we have created this patch for the version specifically to resolve the issues reported in this Forum #146074. If you have received other patches for the same version for other products, please apply all patches in the order received. This fix will be included in our 2019 Volume 3 release which will be rolled out in September, 2019.

Please let us know if you need any further assistance.


Live Chat Icon For mobile
Up arrow icon