TransitionEffect
Abstract class that represents a transition effect.
Definition
Namespace:Telerik.Windows.Controls.TransitionControl
Assembly:Telerik.Windows.Controls.dll
Syntax:
public abstract class TransitionEffect : ShaderEffect
Inheritance: objectTransitionEffect
Derived Classes:
Constructors
Initializes a new instance of the TransitionEffect class.
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.
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.
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.
public static readonly DependencyProperty ProgressProperty
Properties
CurrentSampler
Brush
Gets or sets the CurrentSampler variable within the shader. Represents the image present in the final state of the transition.
[Browsable(false)]
public Brush CurrentSampler { get; set; }
OldSampler
Brush
Gets or sets the OldSampler variable within the shader. Represents the image present in the initial state of the transition.
[Browsable(false)]
public Brush OldSampler { get; set; }
Methods
LoadShader()
PixelShader
When overridden this method should load the shader and return it.
protected abstract PixelShader LoadShader()
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.
Creates an Uri for resource by its full path and using the assembly name of the class specified by the type parameter T.
protected static Uri PackUri<T>(string relativeFile)
The relative path to the resource file.
Returns:Uri
An Uri that points the resource.