# Commands and Input Bindings

> Connect WPF menus, toolbars and KeyBinding to the TextControl with RoutedUICommand and CommandBinding, using CanCopy, CanUndo and CanPrint for CanExecute.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Integration Guide > Commands and Input Bindings
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/commands/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/commands/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/commands/llms-full.txt

---

## On This Page

- [How Commands Reach the Editor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/commands/#how-commands-reach-the-editor)
- [Define the Commands](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/commands/#define-the-commands)
- [Bind the Commands in XAML](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/commands/#bind-the-commands-in-xaml)
- [Write the Handlers](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/commands/#write-the-handlers)
- [Commands From a View Model](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/commands/#commands-from-a-view-model)
- [Keys Only While the Editor Has the Focus](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/commands/#keys-only-while-the-editor-has-the-focus)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/commands/#next-steps)

---

## Nearby

- **Previous:** [MVVM Integration Patterns](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/mvvm/llms.txt)
- **Next:** [WPF Layout and Resizing](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/layout/llms.txt)
