Поделиться через


ObjectKeyFrame.Value Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the key frame's target value.

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

Syntax

'Declaration
Public Property Value As Object
public Object Value { get; set; }
<DiscreteObjectKeyFrame>
  <DiscreteObjectKeyFrame.Value>
    singleObject
  </DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame Value="stringForObject"/>

XAML Values

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

  • stringForObject
    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 nulla null reference (Nothing in Visual Basic).

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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