Windows Form and Data Binding
When building desktop applications for Windows, there are plenty of options, such as:- WPF
- QT
- Chromium + JS, such as AppJS, Electron
- Windows Form
I have developed WPF applications before, and I know that WPF applications tend to be much clean in code aspect than Winform. The key feature of WPF is we can make UI with templates (XAML) with in turn binding with model cleanly (The MVVM model)
But even with Winform we can make code as clean as possible by using DataBinding. But I have seen many projecst written in Winform that barely adapt DataBinding quite well. If your project is in such situation, you should try it definitely.
Two source of information I found very useful to the understanding of Winform DataBinding:
- Pro .NET Pro .NET 2.0 Windows Forms and Custom Controls in C#
Chapter 8, by Matthew MacDonald - Several Blogs by Dinesh Chandnani, .Net Client Team

0 评论:
Post a Comment