页面导航过渡在Windows Phone 8中不起作用?

时间:2014-06-26 12:27:03

标签: c# windows-phone-8 windows-phone

我创建了一个简单的应用程序,并将Silverlight Toolkit添加到我的项目中,并使用以下代码尝试页面导航过渡。它不起作用。怪异。

<toolkit:TransitionService.NavigationInTransition>
    <toolkit:NavigationInTransition>
        <toolkit:NavigationInTransition.Backward>
            <toolkit:SlideTransition Mode="SlideRightFadeIn"/>
        </toolkit:NavigationInTransition.Backward>
        <toolkit:NavigationInTransition.Forward>
            <toolkit:SlideTransition Mode="SlideLeftFadeIn"/>
        </toolkit:NavigationInTransition.Forward>
    </toolkit:NavigationInTransition>
</toolkit:TransitionService.NavigationInTransition>

<toolkit:TransitionService.NavigationOutTransition>
    <toolkit:NavigationOutTransition>
        <toolkit:NavigationOutTransition.Backward>
            <toolkit:SlideTransition Mode="SlideRightFadeOut"/>
        </toolkit:NavigationOutTransition.Backward>
        <toolkit:NavigationOutTransition.Forward>
            <toolkit:SlideTransition Mode="SlideLeftFadeOut"/>
        </toolkit:NavigationOutTransition.Forward>
    </toolkit:NavigationOutTransition>
</toolkit:TransitionService.NavigationOutTransition>

这里我attached my project。任何人都可以取悦那个奇怪的错误!

1 个答案:

答案 0 :(得分:1)

在App.xaml.cs文件中;尝试改变

RootFrame = new PhoneApplicationFrame();
TO
RootFrame = new TransitionFrame();

看看这是否有帮助。