作者:手机用户2502900175 | 来源:互联网 | 2024-12-27 17:02
IneedtofocusTextCellsonebyoneviaabuttonclick.ItriedlistView.ScrollTo.我需要通过点击按钮逐个关注Tex
I need to focus TextCells one by one via a button click. I tried listView.ScrollTo.
我需要通过点击按钮逐个关注TextCells。我试过listView.ScrollTo。
private void Button_Clicked_1(object sender, EventArgs e)
{
listViewJson.ItemTapped += ListViewJson_ItemTapped;
}
private void ListViewJson_ItemTapped(object sender, ItemTappedEventArgs e)
{
var focusing = e.Item;
listViewJson.ScrollTo(focusing, ScrollToPosition.MakeVisible, true);
}
1 个解决方案