C1MenuItem InputGestureText property

Posted by: stefan.nerlich on 23 November 2017, 8:06 pm EST

  • Posted 23 November 2017, 8:06 pm EST

    Hi everyone,
    How can i databind a keyboard shortcut text (e.g Ctrl+O) to C1MenuItem similar to the default WPF MenuItem Property "InputGestureText"

    <c1:C1Menu ItemsSource="{Binding MenItemList, Mode=TwoWay}"
    c1:C1DockPanel.Dock="Top" AutoClose="True" DetectBoundaries="True">
    <c1:C1HierarchicalDataTemplate DataType="{x:Type cmnVM:MenuItemViewModel}" ItemsSource="{Binding Path=MenItemList}">
    <TextBlock Text="{Binding Header}" />
    <Style TargetType="{x:Type c1:C1MenuItem}">
    <Setter Property="Command" Value="{Binding Command}" />
    <Setter Property="IsEnabled" Value="{Binding IsEnabled}"/>
    <Setter Property="IsCheckable" Value="{Binding IsCheckable}"/>
    <Setter Property="IsChecked" Value="{Binding IsChecked}"/>
  • Replied 26 November 2017, 11:33 pm EST

    There is no built-in property to set shortcut/hotkeys directly for C1MenuItem that can help us navigate through the menu using the keyboard itself.
    However, you can try with the below implementation.

  • Replied 27 November 2017, 12:23 am EST

    Thank you for your quick response. I was already aware of the sample project you mentioned in your answer but my question relates to the "InputGestureText" and how to bind this text in the C1MenuItem to achieve a comparable result in the attached screenshot

  • Replied 27 November 2017, 4:10 pm EST

    I forwarded your requirement to concern team as an enhancement.
    Will be added in the future build if it founds it's feasible.
    (TFS ID: 298639 for internal use only)

  • Replied 22 August 2018, 8:33 pm EST


    In the latest build, the InputGestureText property has been added to C1MenuItem. This build can be downloaded from the link below:

    You can update to 2018 v2 build using C1Live.

  • Marked as Answer

    Replied 14 November 2018, 2:24 am EST

    Thank you! The InputGestureText property works as exptected.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels