Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ColorKeyFrame.Value Property

Gets or sets the key frame's target value.

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

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.

Dependency property identifier field: ValueProperty

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

Silverlight

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

Show:
© 2017 Microsoft