Skip to main content

SetAutomationId Method

Helper for setting AutomationId property on a StyledElement.

Definition

Namespace: Avalonia.Automation
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public static void SetAutomationId(
StyledElement element,
string? value
)

Parameters

  StyledElement
 
  String
 

See Also

Reference

AutomationProperties Class
Avalonia.Automation Namespace