I am experiencing some problems making AccessKeys work the way I understand they should in a RadRibbonView.
I have a sample application to demonstrate the problem, but I do not know how to make it available. When the application is running, pressing Ctrl+D should activate the click event of a RadRibbonButton. Note that I configure the AccessKeys property in the initialized event of the button as follows:
private
void
RadRibbonButton_Initialized(
object
sender, EventArgs e)
{
((RadRibbonButton)sender).SetValue(KeyTipService.AccessKeysProperty,
new
Collection<KeyGesture>() {
new
KeyGesture(Key.D, ModifierKeys.Control) });
}
This is my xaml code for the ribbon:
<
telerik:RadRibbonView
Grid.Row
=
"0"
VerticalAlignment
=
"Top"
Grid.ColumnSpan
=
"2"
telerik:KeyTipService.IsKeyTipsEnabled
=
"true"
>
<
telerik:RadRibbonTab
Header
=
"RibbonTab"
telerik:KeyTipService.AccessText
=
"R"
>
<
telerik:RadRibbonGroup
>
<
telerik:RadRibbonButton
telerik:KeyTipService.AccessText
=
"H"
telerik:KeyTipService.AccessKey
=
"Ctrl+D"
Click
=
"RadRibbonButton_Click"
Text
=
"Test"
Initialized
=
"RadRibbonButton_Initialized"
/>
</
telerik:RadRibbonGroup
>
</
telerik:RadRibbonTab
>
</
telerik:RadRibbonView
>
What can I do to get this working?