Google News
logo
WPF - Interview Questions
What do you mean by templates in WPF?
WPF templates define the overall visual appearance and look of a control. There is always a default template associated with each control, which determines how it looks. If you need to customize the visual behaviour of control or the visual appearance of it, you can easily create your own templates in WPF applications. Through data binding, the programming logic and the template can be connected.

Following is a list of four types of templates :   

Control Template :
It enables you to customize a control's appearance and behavior.

Data Template :
You can customize the look and feel of all your data objects with this.

ItemsPanel Template :
This template allows you to customize the layout of items in ItemControls such as ListBoxes and ListViews.

HierarchalData Template:
This template lets you customize the template of both the parent and child treeview items
Advertisement