Commands and Events - Refactoring WPF Window Code for MVVM
July 22, 2024
• 1,225 views
wpfwinuimvvmwpf mvvmwpf uixamlwpf corewpf data bindingdata bindingdotnetwpf .net corewpf data binding c#wpf controlswpf ui designwpf netwpf xamlvisual studioclean codesoftware engineeringC#mvvm wpfcoding.netview modelmodel view viewmodelmodel view view modelxaml data bindingdata binding c#refactorrefactoringfront endC# wpfwpf tutorialwpf design tutorialwpf commandevent handlerwpf eventwpf for beginners
For me, MVVM makes a lot of sense with binding until I have to work with window controls.
Then it all falls apart.
Things seem to get weird when we want to have actions that we're hooking up to. How do we show a window? How do we close one? How do we know when the window itself is closing?
These are all questions that I'll answer in this video. Let's see how to make it happen with commands and events!
