Tag Archives: controls

WPF Controls: Styles & Templates

Windows Presentation Foundation (WPF) has a lot of controls that can be highly customized.

Every WPF control has a Template which is the main control template, you can overwrite a control template entirely.

Most of WPF controls inherit from ContentControl which allows you to put anything inside them. A ListBox for example allows you to put highly customized controls for each item bound. An example of listbox items can be found in the image bellow. Each item is rendered as a sort of rectangle with some text inside.

2015-16-10 09-16-33-446
Continue reading

Advertisements

WPF Controls: Items controls

The controls that inherit from ItemsControl are controls that support a collection of objects.

These controls can be used to display a collection of objects on the screen. For example, controls like ListBox and ComboBox can be used to allow the user to select an object from a collection.

listbox

Continue reading