页面过渡效果 [英] Page Transitions effects

查看:87
本文介绍了页面过渡效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在wpf中有两页。如果我点击第一页,那么该页面应该具有淡入淡出效果。请一步一步指导我。

Hi,

I have two pages in wpf. if i click first page then the page should come with fade effect. please guide me step by step process.

推荐答案



请看下面的链接,希望这样能解决你的问题。< br $>


简单的WPF页面转换 [ ^ ]



http:/ /stackoverflow.com/questions/15877553/how-to-achieve-page-transitions-effect-in-wpf [ ^ ]



http://stackoverflow.com/questions/2135113/怎么办,你-DO过渡效果s-using-the-frame-control-in-wpf [ ^ ]
Hi,
Please see the links below,hope so it will solve your question.

Simple WPF Page Transitions[^]

http://stackoverflow.com/questions/15877553/how-to-achieve-page-transitions-effect-in-wpf[^]

http://stackoverflow.com/questions/2135113/how-do-you-do-transition-effects-using-the-frame-control-in-wpf[^]


试试这个.. :)



WPF的页面转换控制 [ ^ ]



http://social.msdn.microsoft.com/Forums/vstudio/en-US/20b80ab5-e926-4511-854a-5598de0f4a10/wpf-page-transitions-animation [< a href =http://social.msdn.microsoft.com/Forums/vstudio/en-US/20b80ab5-e926-4511-854a-5598de0f4a10/wpf-page-transitions-animationtarget =_ blanktitle =新窗口> ^ ]



页面过渡效果。 [ ^ ]
try this..:)

Page Transition Control for WPF[^]

http://social.msdn.microsoft.com/Forums/vstudio/en-US/20b80ab5-e926-4511-854a-5598de0f4a10/wpf-page-transitions-animation[^]

Page Transition Effects.[^]


我只是试试这里







Im giving just a try here



DoubleAnimation fade = new DoubleAnimation(0.0, 1.0, new Duration(new TimeSpan(0, 0, 0, 0, 1000)));
Storyboard.SetTargetProperty(fade, new PropertyPath(Border.OpacityProperty));
Storyboard myStoryBoard = new Storyboard();
myStoryBoard.Children.Add(fade);
myStoryBoard.Begin(InsertYourContentObjectHere eg.Grid);


这篇关于页面过渡效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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