Show / Hide Table of Contents

Class ByteAnimation

Animates the value of a System.Byte property between two target values using linear interpolation over a specified Duration.

Inheritance
System.Object
DependencyObject
Timeline
AnimationTimeline
ByteAnimation
Inherited Members
AnimationTimeline.GetNaturalDurationCore()
Timeline.Completed
Timeline.AutoReverseProperty
Timeline.AutoReverse
Timeline.BeginTimeProperty
Timeline.BeginTime
Timeline.DurationProperty
Timeline.Duration
Timeline.FillBehaviorProperty
Timeline.FillBehavior
Timeline.RepeatBehaviorProperty
Timeline.RepeatBehavior
Timeline.SpeedRatioProperty
Timeline.SpeedRatio
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public sealed class ByteAnimation : AnimationTimeline, IDependencyObject

Constructors

| Improve this Doc View Source

ByteAnimation()

Initializes a new instance of the ByteAnimation class.

Declaration
public ByteAnimation()
| Improve this Doc View Source

ByteAnimation(Byte, Byte, Duration)

Initializes a new instance of the ByteAnimation class that animates from the specified starting value to the specified destination value over the specified duration.

Declaration
public ByteAnimation(byte fromValue, byte toValue, Duration duration)
Parameters
Type Name Description
System.Byte fromValue

The starting value of the animation.

System.Byte toValue

The destination value of the animation.

Duration duration

The length of time the animation takes to play from start to finish, once. See the Duration property for more information.

| Improve this Doc View Source

ByteAnimation(Byte, Byte, Duration, FillBehavior)

Initializes a new instance of the ByteAnimation class that animates from the specified starting value to the specified destination value over the specified duration and has the specified fill behavior.

Declaration
public ByteAnimation(byte fromValue, byte toValue, Duration duration, FillBehavior fillBehavior)
Parameters
Type Name Description
System.Byte fromValue

The starting value of the animation.

System.Byte toValue

The destination value of the animation.

Duration duration

The length of time the animation takes to play from start to finish, once. See the Duration property for more information.

FillBehavior fillBehavior

Specifies how the animation behaves when it is not active.

| Improve this Doc View Source

ByteAnimation(Byte, Duration)

Initializes a new instance of the ByteAnimation class that animates to the specified value over the specified duration. The starting value for the animation is the base value of the property being animated or the output from another animation.

Declaration
public ByteAnimation(byte toValue, Duration duration)
Parameters
Type Name Description
System.Byte toValue

The destination value of the animation.

Duration duration

The length of time the animation takes to play from start to finish, once. See the Duration property for more information.

| Improve this Doc View Source

ByteAnimation(Byte, Duration, FillBehavior)

Initializes a new instance of the ByteAnimation class that animates to the specified value over the specified duration and has the specified fill behavior. The starting value for the animation is the base value of the property being animated or the output from another animation.

Declaration
public ByteAnimation(byte toValue, Duration duration, FillBehavior fillBehavior)
Parameters
Type Name Description
System.Byte toValue

The destination value of the animation.

Duration duration

The length of time the animation takes to play from start to finish, once. See the Duration property for more information.

FillBehavior fillBehavior

Specifies how the animation behaves when it is not active.

Fields

| Improve this Doc View Source

ByProperty

Identifies the By dependency property.

Declaration
[NotImplemented]
public static readonly DependencyProperty ByProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

EasingFunctionProperty

Identifies the EasingFunction dependency property.

Declaration
public static readonly DependencyProperty EasingFunctionProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

FromProperty

Identifies the From dependency property.

Declaration
public static readonly DependencyProperty FromProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ToProperty

Identifies the To dependency property.

Declaration
public static readonly DependencyProperty ToProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

By

Gets or sets the total amount by which the animation changes its starting value.

Declaration
[NotImplemented]
public byte? By { get; set; }
Property Value
Type Description
System.Nullable<System.Byte>

The total amount by which the animation changes its starting value. The default value is null.

| Improve this Doc View Source

EasingFunction

Gets or sets the easing function applied to this animation.

Declaration
public IEasingFunction EasingFunction { get; set; }
Property Value
Type Description
IEasingFunction

The easing function applied to this animation.

| Improve this Doc View Source

From

Gets or sets the animation's starting value.

Declaration
public byte? From { get; set; }
Property Value
Type Description
System.Nullable<System.Byte>

The starting value of the animation. The default value is null.

| Improve this Doc View Source

To

Gets or sets the animation's ending value.

Declaration
public byte? To { get; set; }
Property Value
Type Description
System.Nullable<System.Byte>

The ending value of the animation. The default value is null.

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source