Condividi tramite


ColorKeyFrame.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 Color
public Color Value { get; set; }
<colorKeyFrame>
  <colorKeyFrame.Value>
    <Color>colorString</Color>
  </colorKeyFrame.Value>
</colorKeyFrame>
<colorKeyFrame Value="colorString"/>
-or-
<colorKeyFrame Value="referenceToColor"/>

XAML Values

  • colorString
    A color specified as a string, using a variety of possible formats, including predefined named colors. For the full list of available string formats that can specify a Color as an attribute, see Color.

  • referenceToColor
    A {StaticResource} reference or other reference to an existing color. You can define a Color in a ResourceDictionary in the form <Color x:Key="key">colorString</Color>.

Property Value

Type: System.Windows.Media.Color
The key frame's target value, which is the value at its specified KeyTime. The default is a Color with an ARGB value of #00000000.

Remarks

Dependency property identifier field: ValueProperty

See Color for details on the various string formats that can be used to specify a color in XAML.

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.