Fade Class
Definition
Section titled “Definition”Fades out one IScreenSurface while fading in another.
public class Fade : InstructionBase, IComponentInheritance object → UpdateComponent → InstructionBase
Implements IComponent
Constructors
Section titled “Constructors”Fade(IScreenSurface, IScreenSurface, TimeSpan, EasingBase?)
Section titled “Fade(IScreenSurface, IScreenSurface, TimeSpan, EasingBase?)”public Fade(IScreenSurface from, IScreenSurface to, TimeSpan duration, EasingBase? easingFunction = null)Parameters
Section titled “Parameters”from IScreenSurface
duration TimeSpan
easingFunction EasingBase
Properties
Section titled “Properties”DeparentFromObject
Section titled “DeparentFromObject”When true, removes the “From” object from the parent when the transition finishes. Supersedes HideFromObject.
public bool DeparentFromObject { get; set; }HideFromObject
Section titled “HideFromObject”When true, sets IsVisible to false on the “From” object when the transition finishes.
public bool HideFromObject { get; set; }RepositionToObject
Section titled “RepositionToObject”When true, sets the position of the “To” object to match the “From” object when the transition finishes.
public bool RepositionToObject { get; set; }Methods
Section titled “Methods”Update(IScreenObject, TimeSpan)
Section titled “Update(IScreenObject, TimeSpan)”Processes the fade between two objects.
public override void Update(IScreenObject componentHost, TimeSpan delta)Parameters
Section titled “Parameters”componentHost IScreenObject
The host running the component.
delta TimeSpan
The time difference for the frame.