![[WPF] KeyBinding 사용하여 단축키 설정하기](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbXm6Wj%2FbtsH3QOxQqp%2FAAAAAAAAAAAAAAAAAAAAAEeGWwAfMdRFSR4StcRROxHhLqFQarufsb9PKvfqUMG7%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1761922799%26allow_ip%3D%26allow_referer%3D%26signature%3DykLM%252Fxd9hDofJzUxEmwdVSGSROY%253D)
Frontend/WPF2024. 6. 18. 22:36[WPF] KeyBinding 사용하여 단축키 설정하기
WPF에서 KeyBinding을 사용하여 Alt+D 키 조합 같은 단축키를 처리하려면 Window.InputBindings에서 KeyBinding을 설정하고 이를 명령에 바인딩할 수 있습니다. 방법은 다음과 같습니다.MainWindow.xaml MainWindow.xaml.csusing System;using System.Windows;using System.Windows.Input;namespace WpfApp{ public partial class MainWindow : Window { public ICommand AltDCommand { get; } public MainWindow() { ..