【发布时间】:2020-02-13 04:22:25
【问题描述】:
在 xamarin.forms 中设置堆栈布局的 AutomationId 以查找列表视图的元素是否安全? 原因: 我在列表视图中有一个组合框,它需要调用具有列表视图元素 id 的函数。 When the selection changed the method of the combo box is called, I check the automationId of the parent element of the combo box who's automationId I've set to a unique string from my collection which I can then identify and find where I am in the列表。
问题: 这样做安全吗?我是否违反了某些 Xamarin.Forms 规则或编程规则?
谢谢
【问题讨论】:
标签: c# android ios xamarin.forms