IsTemplatePartOfType(TemplatedControl, String) Method

Definition

Assembly HeadlessTestingFramework.dll

Validates that a template part is of the expected type.

public static bool IsTemplatePartOfType<T>(TemplatedControl control, string partName)
    where T : class

Type parameters

T
The expected type.

Parameters

control
Avalonia.Controls.Primitives.TemplatedControl

The templated control.

partName
String

The part name.

Returns

Boolean
True if the part exists and is of the correct type.