More WPF Controls
I want to quickly apologize for the odd email you may have received. I was testing the Buttondown API for creating emails and I accidentally sent the email instead of saving it as a draft. I made a mistake by assuming I knew the default behavior of the API. A good reminder to read documentation and to do your homework before trying anything in code.
I will continue expanding the script I started last time by adding more controls to the form. I will also add some basic functionality to the controls to demonstrate how to interact with them. I'll begin with adding an option for the user to enter an alternate set of credentials. This looks better when it is grouped so I will use a GroupBox
control to contain the alternate credential controls.
Listing Controls
Before we get to that, let me give you a tip on how to list .NET types that are related to WPF controls. You've seen that the controls, like buttons, belong to the System.Windows.Controls
namespace. Here's one way to discover the controls that are available in that namespace.