Show / Hide Table of Contents

Class DataTemplate

Implements data template

Inheritance
System.Object
DataTemplate
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class DataTemplate

Constructors

DataTemplate()

Initializes a new instance of the DataTemplate class.

Declaration
public DataTemplate()

DataTemplate(Func<UIElement, UIElement>)

Initializes a new instance of the DataTemplate class.

Declaration
public DataTemplate(Func<UIElement, UIElement> createMethod)
Parameters
Type Name Description
System.Func<UIElement, UIElement> createMethod

The create method.

DataTemplate(Object, Func<UIElement, UIElement>)

Initializes a new instance of the DataTemplate class.

Declaration
public DataTemplate(object dataType, Func<UIElement, UIElement> createMethod)
Parameters
Type Name Description
System.Object dataType

Type of the data.

System.Func<UIElement, UIElement> createMethod

The create method.

Properties

DataTemplateKey

Gets the data template key.

Declaration
public object DataTemplateKey { get; }
Property Value
Type Description
System.Object

The data template key.

DataType

Gets or sets the type of the data.

Declaration
public object DataType { get; set; }
Property Value
Type Description
System.Object

The type of the data.

Methods

CreateVisualTree(UIElement)

Creates the visual tree from template

Declaration
public UIElement CreateVisualTree(UIElement parent)
Parameters
Type Name Description
UIElement parent

The parent.

Returns
Type Description
UIElement

visual tree - created tree from template

Back to top Generated by DocFX