When you think of controls, your mind probably draws up images of buttons, checkboxes, listboxes, and other standard UI elements. These elements enjoy an extraordinary level of support in WPF. You can modify how these elements look using styles, templates, and skins, you can use data binding to bind them to some data, you can make them move via animations, and more! These built-in controls make up much of the visual elements most people will use in their applications.
There will be numerous scenarios, though, where the built-in controls are simply not enough. Or, as it may be, the built-in controls are a bit too much with extra unnecessary functionality or visual complexity. In such cases, what you can do is create your own control. There are two similar but different types of controls you can create yourself - user controls and custom controls. This article deals with the former, and I will give you a brief introduction to user controls and how to use them in your applications.
When you think of controls, your mind probably draws up images of buttons, checkboxes, listboxes, and other standard UI elements. These elements enjoy an extraordinary level of support in WPF. You can modify how these elements look using styles, templates, and skins, you can use data binding to bind them to some data, you can make them move via animations, and more! These built-in controls make up much of the visual elements most people will use in their applications.
There will be numerous scenarios, though, where the built-in controls are simply not enough. Or, as it may be, the built-in controls are a bit too much with extra unnecessary functionality or visual complexity. In such cases, what you can do is create your own control. There are two similar but different types of controls you can create yourself - user controls and custom controls. This article deals with the former, and I will give you a brief introduction to user controls and how to use them in your applications.