With SvFx 4.1 you can define your own effect galleries and use them inside SvFx controls.
In this blog post I am going to show you how this can be done.
TransitionControl with custom pattern gallery:
Download Source
Try SvFx
Buy Now
I will use TransitionControl as an example, however the same code can be applied to all SvFx controls supporting Pattern property: SlideShow, TextAnimation, ChildWindow Effects etc.
First of all we need to add SvCommon, SvEffects and SvTransitionControl assembly references.

Now we add TransitionControl inside our Silverlight page and set PatternType property.

Let's define new transition control pattern. To do this we need to create new Silverlight UserControl and change it's Xaml to be the following.

We also need to change code behind file as shown below.

It is now possible to use newly defined MyFirstTransitionPattern inside the TransitionControl.

Let's customize MyFirstTransitionPattern to create some interesting 3D rotation. Rotation3DTransitionPattern (our base class) has several properties we can set: ShowRotation, HideRotation, ShowTweenType, HideTweenType and so on. We are going to use ShowRotation and HideRotation properties to customize our pattern.

We can add new patterns in the same way.

However it would be great to have all our custom patterns defined inside separate resource collection. This is possible to do via TransitionPatternGalleryProvider class.
Create new ResourceDictinary file called MyCustomPatternsGallery.xaml and add transition patterns there.

Now register MyCustomPatternsGallery resource collection inside TransitionPatternGalleryProvider. Xaml code below shows how TransitionPatternGalleryProvider can be used inside App.xaml file to register new pattern gallery for the TransitionControl.

Now we can use string value to set Pattern property.
