Skip to content

TemplateContext.Get<T> method

Returns the element registered under name.

public T Get<T>(string name)
where T : UIElement
exception condition
InvalidOperationException No element is registered under that name, or it is not a T.