CompositionAnimation.SetColorParameter(String, Color) Method

Definition

Sets a Color value parameter for use with an ExpressionAnimation or an expression keyframe.

Equivalent WinUI method: Microsoft.UI.Composition.CompositionAnimation.SetColorParameter.

public:
 virtual void SetColorParameter(Platform::String ^ key, Color value) = SetColorParameter;
void SetColorParameter(winrt::hstring const& key, Color const& value);
public void SetColorParameter(string key, Color value);
function setColorParameter(key, value)
Public Sub SetColorParameter (key As String, value As Color)

Parameters

key
String

The name of the parameter to set.

value
Color

The Color value.

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Applies to