Extracts the template part of type T

Namespace:  Microsoft.Lync.Controls
Assembly:  Microsoft.Lync.Controls(in Microsoft.Lync.Controls.dll)

Syntax

C#
protected T 
ExtractTemplatePart<T>(
	
string 
partName,
	
bool 
isPartRequired
)
where T : 
DependencyObject

Parameters

partName
Type: System . . :: . . String
The name of the template part.
isPartRequired
Type: System . . :: . . Boolean
True if this part is required, false if it is optional.

Type Parameters

T
The type of the template part to be extracted.

Return Value

The requested template part.

See Also