Common Class for the windows
WPF
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, It is possible to have a common class for two windows? i.e is it possible to have the event handling code common for both the windows as my windows are almost alike. Thanks
-
Hi, It is possible to have a common class for two windows? i.e is it possible to have the event handling code common for both the windows as my windows are almost alike. Thanks
If you follow a pattern such as MVVM, this becomes remarkably trivial. Take a look at my article here[^] for code that behaves in just this way.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.