-
Home
-
API
-
Avalonia.HeadlessTestingFramework
-
VisualTreeTestHelper
-
Methods
-
FindFirstByProperty(Visual, AvaloniaProperty, TProperty)
FindFirstByProperty<T, TProperty>(Visual, AvaloniaProperty, TProperty) Method
Definition
Finds the first control with a specific property value.
public static T? FindFirstByProperty<T, TProperty>(this Visual root, AvaloniaProperty<TProperty> property, TProperty value)
where T : AvaloniaObject
Type parameters
- T
- The type of control to find.
- TProperty
- The type of the property.
Parameters
- value
- {TProperty}
The expected property value.
Returns
- {T}
- The first control with the specified property value, or null if not found.