Windows Presentation Foundation
ControlTemplate Examples

Controls in Windows Presentation Foundation (WPF) have a ControlTemplate that contains the visual tree of that control. You can change the structure and appearance of a control by modifying the ControlTemplate of that control. There is no way to replace only part of the visual tree of a control; to change the visual tree of a control you must set the Template property of the control to its new and complete ControlTemplate.

In This Section

Button ControlTemplate Example

CheckBox ControlTemplate Example

ComboBox ControlTemplate Example

ComboBoxItem ControlTemplate Example

ContextMenu ControlTemplate Example

DocumentViewer ControlTemplate Example

Expander ControlTemplate Example

Frame ControlTemplate Example

GroupBox ControlTemplate Example

Label ControlTemplate Example

ListBox ControlTemplate Example

ListBoxItem ControlTemplate Example

ListView ControlTemplate Example

ListViewItem ControlTemplate Example

Menu ControlTemplate Example

MenuItem ControlTemplate Example

NavigationWindow ControlTemplate Example

ProgressBar ControlTemplate Example

RadioButton ControlTemplate Example

ScrollBar ControlTemplate Example

ScrollViewer ControlTemplate Example

Slider ControlTemplate Example

StatusBar ControlTemplate Example

TabControl ControlTemplate Example

TabItem ControlTemplate Example

TextBox ControlTemplate Example

ToolBar ControlTemplate Example

ToolTip ControlTemplate Example

TreeView ControlTemplate Example

TreeViewItem ControlTemplate Example

Window ControlTemplate Example

Reference

System.Windows.Controls

ControlTemplate

Related Sections

Control Authoring Overview

Styling and Templating

Control Customization Samples

Tags :


Page view tracker