导航回来后,admediator没有刷新。 [英] admediator not refreshing after navigation back.

查看:61
本文介绍了导航回来后,admediator没有刷新。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我正在将一些较旧的应用升级到UWP,但遇到了问题。 

I'm upgrading some older apps to UWP, and have run into a problem. 

用户使用shell导航回导到主页面或已设置的任何其他页面

When ever the user navigates back using the shell navigation to the main page or any other page that has set

this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required;

添加没有显示,即使经过漫长的等待也不会显示。

the adds are not displaying and will not show at all even after a long wait.

这真的很烦人。

一个例子是https://www.microsoft.com/store/apps/9nblgggzq1nx for windows 10(不是手机或手机)

An example is https://www.microsoft.com/store/apps/9nblgggzq1nx for windows 10 (not phone or mobile)

这些添加内容在应用程序的午餐时间正确显示,但只要用户观看了视频并导航回来,就没有添加内容,也不会重新出现。

The adds show correctly at the lunch of the apps, but as soon as the user has watched a video and navigate back there is no adds and they don't reappear.

我正在使用MVVM光框架。

Im using the MVVM light framework.

推荐答案

必须实现我自己的保存状态,然后在导航回来时重新加载它以使其工作,但那是很多工作而不是一行代码,必须为每个应用程序完成。请解决此问题。
Had to implement my own save state and then reload it when navigating back to get it to work but that is a lot of work instead of one line of code, and it has to be done for every app. Please fix this issue.


这篇关于导航回来后,admediator没有刷新。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆