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"/>
     </sfmenu:SfMenuItem>
</sfmenu:SfMenu>


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.

Regards,
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 17.2.0.34. 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" > 
                    <menu:SfMenuItem.KeyboardAccelerators> 
                        <KeyboardAccelerator Key="N" Modifiers="Control"Invoked="KeyboardAccelerator_Invoked"/> 
                    </menu:SfMenuItem.KeyboardAccelerators> 
                </menu:SfMenuItem> 
      </menu:SfMenu>

# MainPage.xaml.cs

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

Please find the patch file from the following location. 
 
        
V17.2.0.34 
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:             
             
             
NOTE
You can change how you receive bug fixes by navigating to the following link and updating your preferences.
https://www.syncfusion.com/support/directtrac/patches   
 
           
Disclaimer:                            
Please note that we have created this patch for the version 17.2.0.34 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.

Regards, 
Jagadeesan 


Loader.
Up arrow icon