KeyFrame
Inheritance: AvaloniaObject\
AvaloniaUI documentation: KeyFrame API
Constructors
| Constructors | Description |
|---|
| KeyFrames(setters: IAnimationSetter seq) | Creates a KeyFrame widget. |
| KeyFrame(property: AvaloniaProperty, value: obj) | Creates a KeyFrame widget. |
Properties
| Properties |
Description |
| cue(value: Cue) |
Sets the Cue property. |
| cue(value: float) |
Sets the Cue property. |
| cue(value: string) |
Sets the Cue property. |
| keySpline(value: KeySpline) |
Sets the KeySpline property. |
| keySpline(value: string) |
Sets the KeySpline property. |
| keyTime(value: TimeSpan) |
Sets the KeyTime property. |
| reference(value: ViewRef) |
Link a ViewRef to access the direct KeyFrame control instance. |
Usages
KeyFrame(Rotate3DTransform.AngleXProperty, 0.).cue(0.)
KeyFrames([
Setter(Rotate3DTransform.AngleXProperty, 0.)
Setter(Visual.ZIndexProperty, 4)
Setter(Rotate3DTransform.AngleXProperty, 90.)
Setter(Visual.ZIndexProperty, 1)
Setter(Rotate3DTransform.AngleXProperty, 360.)
Setter(Visual.ZIndexProperty, 4)
])
Get access to the underlying KeyFrame
let keyFrameRef = ViewRef<KeyFrame>()
KeyFrame(Rotate3DTransform.AngleXProperty, 0.).cue(0.)
.reference(keyFrameRef)