
Greetings,
In my ribbon, I have several buttons that need keyboard shortcuts. My understanding was that I just needed to assign the key I want to use to the button's KeyTipAccessText property. However, that doesn't appear to work. Specifically, pressing Alt+<key> doesn't fire the button's command and the character isn't underlined in the button's label. Is there something else I need to do?
Thanks,
-Craig
In my ribbon, I have several buttons that need keyboard shortcuts. My understanding was that I just needed to assign the key I want to use to the button's KeyTipAccessText property. However, that doesn't appear to work. Specifically, pressing Alt+<key> doesn't fire the button's command and the character isn't underlined in the button's label. Is there something else I need to do?
Thanks,
-Craig
<apribbon:SplitButton
Label="Table Column"
DataContext="{Binding ElementName=navigatorFrame, Path=Editor.SelectedContext}"
Command="{Binding AddTableColumn}"
CommandParameter="{x:Type Table:AstTableColumnNode}"
IsEnabled="{Binding Converter={StaticResource isObjectOfTypeConverter}, ConverterParameter={x:Type Table1:AstTableViewModel}}"
ImageSourceLarge="{DynamicResource tableRibbonColumnImage}"
KeyTipAccessText="C"
>
<apribbon:Menu>
...
</apribbon:Menu>
</apribbon:SplitButton>
<apribbon:Button
Label="Import Column"
DataContext="{Binding ElementName=navigatorFrame, Path=Editor.SelectedContext}"
Command="{Binding Import}"
IsEnabled="{Binding Converter={StaticResource isObjectOfTypeConverter}, ConverterParameter={x:Type Table1:AstTableViewModel}}"
ImageSourceLarge="{DynamicResource tableRibbonImportColumnsImage}"
KeyTipAccessText="I"
/>