My code sets AutomationId for tags below:
- SfListView
- SfListView.ItemTemplate
- Control under DataTemplate
and I would like to use these AutomationId for the automate testing (e.g. Selenium).
The AutomationId in tag SfListView and control under DataTemplate are available (see my attachment, file 1.png and 3.png),
but the AutomationId in tag SfListView.ItemTemplate is unavailable at runtime (see 2.png in the attachment).
How to make AutomationId is available at SfListView.ItemTemplate level?
However, I would not to set AutomationId at the control under DataTemplate everytimes that I use SfListView.
and I would like to create my control that inherits from SfListView, pre-set some properties (ex. AutomationId, ...) and use my control in the solution insteadly.
Best regards,
Gai
Attachment:
SfPlayground_c1a3373.zip