TabViewItem内容和重新加载问题
我有一个带有UserControl的TabViewItem。
<TabViewItem>
<local:ListViewUC x:Name="listView" Chapter="{x:Bind Chapter}"/>
</TabViewItem>
每当我在选项卡之间切换时,选项卡的内容和先前的信息都会丢失。 有没有办法禁用重新加载?
i have a TabViewItem with a UserControl inside it.
<TabViewItem>
<local:ListViewUC x:Name="listView" Chapter="{x:Bind Chapter}"/>
</TabViewItem>
Each time I switch between tabs, the contents of the tab reload and the previous information is lost.
Is there a way to disable reload?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是
TabViewItem
重新加载原因listViewuc
reload动画触发,您可以通过设置code> listview.itemcontainertransitions
空的过渡汇总或删除默认值contentThemetransition
。The problem is that
TabViewItem
reload causeListViewUC
reload animation triggered, you could disable the animation by settingListView.ItemContainerTransitions
with an empty TransitionCollection or remove defaultContentThemeTransition
.