January

SvFx for Windows Phone

Author: Steve Li
Posted on: 31 Jan 2011
SvFx for Windows Phone Beta is now available for free. Please request your free download via support@cellbi.com

SvFxWinPhoneBeta

SvFx for Windows Phone includes all SvFx controls ported to Windows Phone platform. You can use Carousel, TransitionControl, SlideShow and TextAnimation controls to build applications for Windows Phone mobile devices.
About 500 ready animation patterns included.

There are several notes about this release:

  • Currently there is no toolbox items registered inside VisualStudio.
  • It is not possible to use single "cellbi" XAML namespace prefix.
  • This release does not include samples.
  • There is no documentation included.

We would like to get your feedback.
Please help us make SvFx controls better.

Posted in: SvFx

SvFx 4.1 - Custom Effect Galleries

Author: Steve Li
Posted on: 30 Jan 2011

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.

Assembly References

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

TransitionControl Xaml

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.

MyFirstPattern Xaml

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

MyFirstPattern CodeBehind

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

MyFirstPattern Usage

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.

MyFirstPatternCustomization

We can add new patterns in the same way.

MySecondPatternXaml

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.

PatternGallery

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.

AppXaml

Now we can use string value to set Pattern property.

UsingStringAsPattern

Posted in: SvFx

SvFx 4.1 - Advanced animations for Silverlight Navigation Frame

Author: Steve Li
Posted on: 26 Jan 2011
Starting from Silverlight 3 Microsoft has introduced the Navigation Framework which makes it possible to navigate between pages. In this post we'll see how TransitionControl can be used to add animations to the navigation frame.

Cellbi TransitionControl allows to add advanced animations for Pages using just a few lines in Xaml code.

See it in action below:

Download Source
Try SvFx
Buy Now

To add navigations between pages we can use separate project template called Silverlight Navigation Application to create new navigation application or we can add new Frame control inside existing UserControl.

In both cases we'll get Xaml code similar to the following.

Frame control in xaml file

Navigation Framework allows mapping of address with the help of UriMapper property.

That's enough for many cases. But if you want to add transition animations for each page you will have to do some additional work.

TransitionControl is designed to simplify this task. We can now extend behaviour of the Frame control. TransitionControl includes for about 500 animation patterns.

Let's see how it works.

Add Cellbi.SvCommon.dll, Cellbi.SvEffects.dll and Cellbi.SvTransitionControl.dll assembly references.

SvFx assembly references

Add new namespace prefix.

SvFx assembly references

Use TransitionControl

TransitionControl in Frame template

At this point you can choose any animation pattern from the patterns gallery using PatternType property.

Posted in: SvFx

SvFx 4.1 - Silverlight ChildWindow Effects in Action

Author: Steve Li
Posted on: 21 Jan 2011

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.

Posted in: SvFx