Control
via Transitions
property:Rectangle
's Opacity
property, and when the value changes, apply a smooth transition from the old value to the new value over 2 seconds.Setter
with Transitions
as the target property and encapsulating them in a Transitions
object, like so:Property
, Delay
, Duration
and an optional Easing
property.Property
refers to a transition's target for listening and animating values upon.Delay
refers to the amount of time before the transition is applied to the target.Duration
refers to the amount of time that the transition plays.BoxShadowsTransition
: For BoxShadows
target propertiesBrushTransition
: For IBrush
target propertiesColorTransition
: For Color
target propertiesCornerRadiusTransition
: For CornerRadius
target propertiesDoubleTransitions
: For double
target propertiesFloatTransitions
: For float
target propertiesIntegerTransitions
: For int
target propertiesPointTransition
: For Point
target propertiesSizeTransition
: For Size
target propertiesThicknessTransition
: For Thickness
target propertiesTransformOperationsTransition
: For ITransform
target propertiesVectorTransition
: For Vector
target propertiesRotateTransform
,ScaleTransform
etc. These transforms cannot be transitioned: always use the CSS-like format if you want to apply a transition to a render transform.