New to Telerik UI for WPFStart a free 30-day trial

Provides the base class from which the classes that represent custom control are derived.

Definition

Constructors

C#
protected ControlBase()

Methods

Gets the required template child.

C#
protected T GetRequiredTemplateChild<T>(string childName, bool crashIfNotFound = true) where T : DependencyObject
Parameters:childNamestring

Name of the child.

crashIfNotFoundbool

If true the method will throw exception if the required child is not found.

Returns:

T

Gets the template child.

C#
protected T GetTemplateChild<T>(string childName) where T : DependencyObject
Parameters:childNamestring

Name of the child.

Returns:

T