■ BarButtonItem 엘리먼트의 KeyGesture 속성을 사용하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 |
<dxb:BarButtonItem x:Name="cutBarButtonItem" Command="ApplicationCommands.Cut" CommandTarget="{Binding ElementName=textEdit}" KeyGesture="CTRL+1" Content="{Binding Command.Text, RelativeSource={RelativeSource Self}}" /> |
※ xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"