Skip to content

TransitionAnimationProvider.ApplyTransition(object, Transition, int) method

Defined in

Type: TransitionAnimationProvider Namespace: CrissCross.WPF.UI.Animations Assembly: CrissCross.WPF.UI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

public static bool ApplyTransition(object element, Transition type, int duration)

Summary: Attempts to apply an animation effect while adding content to the frame.

Parameters

NameTypeDescription
elementobjectCurrently rendered element.
type[Transition](#Selected transition type.
durationintTransition duration.

Returns: bool -- Returns true if the transition was applied. Otherwise false.