Difference between Control Template and DataTemplate in WPF
问题 What is difference between a ControlTemplate and a DataTemplate in WPF? 回答1: Typically a control is rendered for its own sake, and doesn't reflect underlying data. For example, a Button wouldn't be bound to a business object - it's there purely so it can be clicked on. A ContentControl or ListBox , however, generally appear so that they can present data for the user. A DataTemplate , therefore, is used to provide visual structure for underlying data, while a ControlTemplate has nothing to do