This code doesn't seem to work
function ScrollToBottom(int listCount){
this.FindByName<CollectionView>
("MyCollectioNView").ScrollTo(listCount- 1, animate: false);
}
Note: The function will be called inside MessagingCenter.Subscribe()
What could be the workaround for this problem?
2条答案
按热度按时间3z6pesqy1#
我确实试着用这种方式重现问题,但我没有重现问题。
我根据官方代码VerticalListSinglePreSelectionPage.xaml.cs进行了测试,并修改了代码,如下所示:
r3i60tvu2#
Workaround for this issue
似乎奏效了。