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

你可能感兴趣的:(it,animation,controls,includes,support)