ObjectKeyFrame.Value Property

Gets or sets the key frame's target value.

Namespace:  System.Windows.Media.Animation
Assembly:  System.Windows (in System.Windows.dll)

public Object Value { get; set; }
<DiscreteObjectKeyFrame Value="stringForObject"/>

XAML Values


A single object element for the object that provides the value. This object must support object element syntax for default construction.


A string that is interpreted by a particular object's attributed type converter, which can generate an instance of the object. You can use this form for enumeration values, by specifying the name of the desired constant from the enumeration.

Property Value

Type: System.Object
The key frame's target value, which is the value of this key frame at its specified KeyTime. The default is null.

Dependency property identifier field: ValueProperty

DiscreteObjectKeyFrame is shown in the XAML usages for ObjectKeyFrame properties because DiscreteObjectKeyFrame is the only object animation keyframe type that the Silverlight animation system can support.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions