listview
scroll position
別のページに移動してボタンを押して戻ってきた場合、どのように維持できback
ますか?
それは常にresets it to top
。私がいた位置に戻るのは本当に苦痛です。助けてください
listview
scroll position
別のページに移動してボタンを押して戻ってきた場合、どのように維持できback
ますか?
それは常にresets it to top
。私がいた位置に戻るのは本当に苦痛です。助けてください
または、ページ XAML に NavigationCacheMode="Enabled" を追加することもできます。
<Page
NavigationCacheMode="Enabled">
ほとんどの場合、ステップ 1 でうまくいきます。そうでない場合は、ステップ 2 に従って listView を変更する必要があります。
1)this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled;
2)
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
私はそれが役立つことを願っています:)