Actipro WPF Shared Library
Animation
The ActiproSoftware.Windows.Media.Animation namespace has a number of classes that support animated transitions between two objects.
These can be anything from a simple fade to a complex wipe.
The transition classes are extensible and provide the foundation for page transitions in our
Wizard for WPF
product.
The TransitionPresenter Control
The TransitionPresenter control coordinates transitions between two contents, a "from" content and a "to" content.
The contents may be any object type and can optionally use a
DataTemplate or a DataTemplateSelector to build the user interface for the objects.
Wizard for WPF using the transition presenter with a bar wipe transition to switch between pages
Default transition effect directions and durations may be specified.
A default mode is used to indicate to a TransitionSelector whether selected transitions that support the mode concept
should be In (the default) or Out transitions.
Out transitions are generally used when making backwards progress through a sequence of items.
Built-In Transitions
The Shared library includes a number of built-in transitions.
Many of the built-in transitions support multiple directions and have an in/out mode concept.
This list shows the built-in transitions:
- Barn door wipe - A wipe transition between two pages that uses two straight bars with a configurable gradient spread.
- Bar wipe - A wipe transition between two pages that uses a straight bar with a configurable gradient spread.
- Box wipe - A wipe transition between two pages that uses a box.
- Fade - The old selected page fades into the new one with optional blur effect.
- Faded zoom - A crossfade transition between two elements that zooms the new content in as well.
- Four box wipe - A wipe transition between two pages that uses four boxes.
- Slide - A slide transition between two pages that moves one page over the other.
- Push - A slide transition between two pages that pushes one page out of the way for the other.
- Wedge wipe - A wipe transition between two pages that uses a wedge shape.
Custom Transitions
Custom transitions can easily be created programmatically or via XAML.
Selecting Transitions
A single transition can be used or programming logic may be implemented to determine which transitions to use.
An included transition selector allows for random selection of a transition from a list of transitions.
|