Show / Hide Table of Contents

Class ControlTemplate

Implements control template and cache for created elements inside template

Inheritance
System.Object
ControlTemplate
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.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class ControlTemplate

Constructors

ControlTemplate()

Initializes a new instance of the ControlTemplate class.

Declaration
public ControlTemplate()

ControlTemplate(Func<UIElement, UIElement>)

Initializes a new instance of the ControlTemplate class.

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

The create method.

ControlTemplate(Type, Func<UIElement, UIElement>)

Initializes a new instance of the ControlTemplate class.

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

Type of the target.

System.Func<UIElement, UIElement> createMethod

The create method.

Properties

TargetType

Gets or sets the type of the target.

Declaration
public Type TargetType { get; set; }
Property Value
Type Description
System.Type

The type of the target.

Triggers

Gets the triggers.

Declaration
public List<TriggerBase> Triggers { get; }
Property Value
Type Description
System.Collections.Generic.List<TriggerBase>

The triggers.

Methods

ClearTemplateCache(UIElement)

Clears the template cache.

Declaration
public void ClearTemplateCache(UIElement templateParent)
Parameters
Type Name Description
UIElement templateParent

The template parent.

CreateVisualTree(UIElement)

Creates the visual tree.

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

The parent.

Returns
Type Description
UIElement
Back to top Generated by DocFX