GetTemplatePart(TemplatedControl, String) Method

Definition

Assembly HeadlessTestingFramework.dll

Gets a template part by name.

public static T? GetTemplatePart<T>(TemplatedControl control, string partName)
    where T : class

Type parameters

T
The expected part type.

Parameters

control
Avalonia.Controls.Primitives.TemplatedControl

The templated control.

partName
String

The part name.

Returns

{T}
The template part, or null if not found.