Class DefaultControlTemplateRegistry

Namespace
Forma
Assembly
Forma.dll
public sealed class DefaultControlTemplateRegistry
Inheritance
DefaultControlTemplateRegistry
Inherited Members

Constructors

DefaultControlTemplateRegistry()

public DefaultControlTemplateRegistry()

Properties

Shared

public static DefaultControlTemplateRegistry Shared { get; }

Property Value

DefaultControlTemplateRegistry

Methods

GetTemplate(Type)

public ControlTemplate GetTemplate(Type controlType)

Parameters

controlType Type

Returns

ControlTemplate

Register(ControlTemplate)

public void Register(ControlTemplate template)

Parameters

template ControlTemplate

Register<TControl>(ControlTemplateFactory<TControl>, IEnumerable<TemplatePartMetadata>)

public void Register<TControl>(ControlTemplateFactory<TControl> factory, IEnumerable<TemplatePartMetadata> parts = null) where TControl : TemplatedControl

Parameters

factory ControlTemplateFactory<TControl>
parts IEnumerable<TemplatePartMetadata>

Type Parameters

TControl

TryGetTemplate(Type, out ControlTemplate)

public bool TryGetTemplate(Type controlType, out ControlTemplate template)

Parameters

controlType Type
template ControlTemplate

Returns

bool

Unregister(Type)

public bool Unregister(Type controlType)

Parameters

controlType Type

Returns

bool