微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

silverlight 子窗体页面样式

SvFx 4.1 includes support for Silverlight ChildWindow control animation. You can easily add animations to ChildWindow controls using just a few lines of code.

See it in action below:

Download Source
Try SvFx
Buy Now

Let's see how this works.

First of all add references to Cellbi.SvCommon and Cellbi.sveffects assemblies.

SvCommon and SvEffects References

Create new ChildWindow control and add the following XAML code (new lines are marked with green on the left margin).

ChildWindowEffect XAML

Note that Visual Studio shows Intellisense with a complete list of built-in SvFx window patterns you can choose from.

Now open code behind file and add OnApplyTemplate method override with the following code (new lines are marked with green on the left margin).

OnApplyTemplate code

We are done! Now just call Show method to display the window.

http://www.cellbi.com/blog/2011/01/svfx-4-1-silverlight-childwindow-effects-in-action.aspx

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐