Thomas Levesque 3/17/2009

[WPF] Using InputBindings with the MVVM pattern

Read Original

This technical article addresses a common problem in WPF MVVM development: binding keyboard or mouse input gestures directly to ViewModel commands in XAML. It explains why the intuitive approach fails and presents a custom markup extension solution that uses reflection to access the DataContext, enabling clean XAML-based command binding for InputBindings.

[WPF] Using InputBindings with the MVVM pattern

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser