Sometime we need to display different values on user element than what is stored in corresponding data bind element. Such as we may store the status code in the form of integer or enum representing different states, but display some user defined string. 644 more words
Tags » Datatemplate
- Very basically a ControlTemplate describes how to display a Control while a DataTemplate describes how to display Data.
- Control Template: Represents control style. Data Template: Represents data style(How would you like to show your data). 335 more words
When you define a data template to use as the item template for a ComboBox, this item template is used to render each item in the dropdown list when it appears. 324 more words