Edytuj

Udostępnij za pośrednictwem


CAPropertyAnimation.FromKeyPath(String) Method

Definition

Creates a property animation from the specified keypath.

[Foundation.Export("animationWithKeyPath:")]
public static CoreAnimation.CAPropertyAnimation FromKeyPath (string path);
static member FromKeyPath : string -> CoreAnimation.CAPropertyAnimation

Parameters

path
String

A key path represening the property to animate.

This parameter can be null.

Returns

The new animation.

Attributes

Remarks

The animation created will animate the property specified by the keypath.

PropertyAction
anchorPointAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
backgroundColorAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation. Subproperties are animated with basic animations.
backgroundFiltersAnimates using a CATransition for 0.25 seconds or the duration of the transaction. The default animation type is CATransition.Fade and the range is from 0.0 to 1.0. The filter subproperties are animated with a CABasicAnimation.
borderColorAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
borderWidthAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
boundsAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
compositingFilterAnimates using a CATransition for 0.25 seconds or the duration of the transaction. The default animation type is CATransition.Fade and the range is from 0.0 to 1.0. Subproperties are animated with basic animations.
contentsAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
contentsRectAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
cornerRadiusAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
doubleSidedNo default implied animation is set.
filtersAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation. Sub-properties of the filters are animated using the default implied CABasicAnimation described in Table 10.
frameThe frame property itself is not animatable. You can achieve the same results by modifying the bounds and position properties instead.
hiddenAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
maskAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation. This property is available only on Mac OS X.
masksToBoundsAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
opacityAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
positionAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
shadowColorAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation. This property is available only on Mac OS X.
shadowOffsetUses the default implied CABasicAnimation described in Table 10. This property is available only on Mac OS X.
shadowOpacityAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation. This property is available only on Mac OS X.
shadowRadiusAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation. This property is available only on Mac OS X.
sublayersAnimates using a CATransition for 0.25 seconds or the duration of the transaction. The default animation type is CATransition.Fade and the range is from 0.0 to 1.0..
sublayerTransformAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
transformAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.
zPositionAnimates for 0.25 seconds or the duration of the current transaction using a CABasicAnimation.

Applies to