简体   繁体   English

如何在Silverlight导航框架中添加自定义过渡?

[英]How do I add custom transition in silverlight navigation frame?

I have few user controls in a silverlight application and a navigation frame. 我在Silverlight应用程序和导航框架中没有几个用户控件。 Current User control --> Current source of the frame Next User Control --> User control that is shown when clicked on a hyper link 当前用户控件->框架的当前来源下一个用户控件->单击超链接时显示的用户控件

When clicked on a hyperlink, I want to add custom transition such that the current page fades, reduces its size and then disappears while fading. 当单击超链接时,我想添加自定义过渡,以使当前页面淡出,减小其大小,然后在褪色时消失。 Then I want the reverse to happen on the next user control ie the user control that is going to be loaded will appear small, faded out and then expand whilst fading in. Other than using the inbuilt transitions that are provided with transitioncontent control, is there a way to add a storyboard transition to the current control and reverse the transition on the control that the frame is being navigated to? 然后,我希望在下一个用户控件上发生相反的情况,即将要加载的用户控件将变小,淡出然后在淡入时扩展。除了使用transitioncontent控件提供的内置过渡之外,还有一种将情节提要过渡添加到当前控件并在框架要导航到的控件上反向过渡的方法?

If you modify the template of the TransitioningContentControl, you can alter the defined states to change the transition animation to your desired fade and shrink animation. 如果修改TransitioningContentControl的模板,则可以更改定义的状态,以将过渡动画更改为所需的淡入淡出和收缩动画。

(I've retemplated TransitioningContentControl in a navigation application for my website, www.mikeherman.net ) (我retemplated TransitioningContentControl在导航应用为我的网站, www.mikeherman.net

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM