Now we will need to create our first custom control. Guess where? That will be created in the class library project. As the main application has a reference to the library already added to it, so it will automatically get the public class types or controls that we are going to create here.
So, right-click on the library project. From the context menu, click on Add | New Item... as shown in the following screenshot:
In the Add New Item dialog window, expand Installed | Visual C# and select the item type Templated Control as shown in the following screenshot. It's nothing but the type to create custom controls. Give ...