ElementTemplate public class ElementTemplate : IElement, IDataTemplate Base class for DataTemplate and ControlTemplate classes. Documentation Code public object CreateContent() Used by the XAML infrastructure to load data templates and set up the content of the resulting UI.