New to Telerik UI for WPFStart a free 30-day trial

Abstract class that represents a transition effect.

Definition

Namespace:Telerik.Windows.Controls.TransitionControl

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public abstract class TransitionEffect : ShaderEffect

Inheritance: objectTransitionEffect

Derived Classes: BaseTransitionEffect

Constructors

Initializes a new instance of the TransitionEffect class.

C#
protected TransitionEffect()

Fields

CurrentSamplerProperty

DependencyProperty

Identifies the CurrentSampler property. Brush-valued properties turn into sampler-property in the shader. Represents the image present in the final state of the transition.

C#
public static readonly DependencyProperty CurrentSamplerProperty

OldSamplerProperty

DependencyProperty

Identifies the OldSampler property. Brush-valued properties turn into sampler-property in the shader. Represents the image present in the initial state of the transition.

C#
public static readonly DependencyProperty OldSamplerProperty

ProgressProperty

DependencyProperty

Identifies the Progress property. When its value is 0.0 the effect shows the initial state of the transition, when 1.0 - the final state.

C#
public static readonly DependencyProperty ProgressProperty

Properties

Gets or sets the CurrentSampler variable within the shader. Represents the image present in the final state of the transition.

C#
[Browsable(false)]
public Brush CurrentSampler { get; set; }

Gets or sets the OldSampler variable within the shader. Represents the image present in the initial state of the transition.

C#
[Browsable(false)]
public Brush OldSampler { get; set; }

Gets or sets the Progress variable within the shader. When its value is 0.0 the effect shows the initial state of the transition, when 1.0 - the final state.

C#
public double Progress { get; set; }

Methods

LoadShader()

PixelShader

When overridden this method should load the shader and return it.

C#
protected abstract PixelShader LoadShader()
Returns:

PixelShader

The newly loaded shader.

This method is called when the progress of the transition is changed. When overridden it should take care of moving the transition.

C#
protected virtual void OnProgressChanged(double oldProgress, double newProgress)
Parameters:oldProgressdouble

The old progress of the transition.

newProgressdouble

The new progress of the transition.

Creates an Uri for resource by its full path and using the assembly name of the class specified by the type parameter T.

C#
protected static Uri PackUri<T>(string relativeFile)
Parameters:relativeFilestring

The relative path to the resource file.

Returns:

Uri

An Uri that points the resource.