I have a very simple WPF application which has a button:
<Button x:Name="buttonNextImage" Content=">" Margin="0,0,0.4,-0.2"
Click="buttonNextImage_Click" HorizontalAlignment="Right" Width="25"
Background="Transparent"
BorderThickness="0">
</Button>
All I want to do is allow the user to activate this button's click event by pressing the right arrow key on their keybaord while the application window is in focus.
I checked this answer, but I don't have a label to add an underscore to - the only text I want the button to display is a >
- surely it is possible to achieve this without resorting to adding a label.
I also tried the answer here but I just get this annoying error in my xaml saying MyCommand
does not exist, even though I delcared it in the code-behind.
Any guidance on this is much appreciated..