在Windows Phone 8.1上禁用集线器导航到动画 [英] Disable hub navigationTo animation on windows phone 8.1

查看:67
本文介绍了在Windows Phone 8.1上禁用集线器导航到动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hi,


我是WP和C#开发的新手,我有点陷入细节:当我导航到页面时,我无法禁用集线器动画启动。

I'm new in WP and C# development and i'm kind of stuck on a detail : I'm not able to disable the hub animation launch when I navigate to a page.


在下面的gif中,您可以看到只有集线器是动画的(整个集线器的背景是红色的)。我没有任何其他控制器的问题,并且没有分配到集线器的转换或动画。

On the gif below, you can see that only the hub is animated (the background of the entire hub is red). I don't have the problem with any other controller and there is no transition nor animation assigned to the hub.


http://img15.hostingpics.net /pics/895824temp32024375320.gif

http://img15.hostingpics.net/pics/895824temp32024375320.gif


有人知道如何解决问题?

Someone have an clue how I can solve the problem ?


提前致谢。

With thanks in advance.

推荐答案

你好picrou,

Hi picrou,

对于disabl在导航过程中动画,请尝试检查以下代码是否有效:

For disabling the animation during the navigation, please try to check if the following code works:

public MyPage()
{
    this.InitializeComponent();
    Frame myFrame =(Frame)Window.Current.Content;
    myFrame.ContentTransitions = null;
}


此外,还请尝试查看以下由@ Shawn Kendrot 撰写的博客(Microsoft Windows平台开发版) MVP):在Windows Phone运行时中的
#Page过渡和动画:

http://www.visuallylocated.com/post/2014/06/24/Page-transitions-and-animations-in-Windows -Phone-Runtime.aspx

最好的问候,

Amy Peng



此响应包含对第三方万维网站点的引用。 Microsoft提供此信息是为了方便您。 Microsoft不控制这些网站,也未测试在这些网站上找到的任何软件或信息;因此,
Microsoft不能就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。使用互联网上的任何软件都存在固有的危险,并且Microsoft提醒您在从互联网上检索任何软件之前确保您完全了解风险。



Besides, please also try to check the following blog which is written by @Shawn Kendrot(Microsoft Windows Platform Dev MVP):
#Page transitions and animations in Windows Phone Runtime:
http://www.visuallylocated.com/post/2014/06/24/Page-transitions-and-animations-in-Windows-Phone-Runtime.aspx .
Best Regards,
Amy Peng

This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


这篇关于在Windows Phone 8.1上禁用集线器导航到动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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