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:C1Menu.ItemTemplate>
<c1:C1HierarchicalDataTemplate DataType="{x:Type cmnVM:MenuItemViewModel}" ItemsSource="{Binding Path=MenItemList}">
<TextBlock Text="{Binding Header}" />
</c1:C1HierarchicalDataTemplate>
</c1:C1Menu.ItemTemplate>
<c1:C1Menu.ItemContainerStyle>
<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}"/>
</Style>
</c1:C1Menu.ItemContainerStyle>
</c1:C1Menu>