WPF ControlsUse WPF controls, selecting from the available types in the System.Windows.Controls namespace.
Controls, WPF. This technology, Windows Presentation Foundation, is a newer approach to designing Windows programs. It has more graphical effects available than classic Windows Forms.
Suppose we wish to enable a Button when a situation occurs—like when a valid name is entered. We can set IsEnabled to an expression that returns true or false.
And: This means we can ensure the Button is always enabled when the condition is true, and false if not.
So: The code is clearer, and easier to maintain. We can avoid tracking complicated state this way.
A summary. WPF seems to result in a more professional, polished user interface than Windows Forms does. But in many respects, the technologies are interchangeable.
© 2007-2020 Sam Allen. Every person is special and unique. Send bug reports to email@example.com.