Share via


Storyboard.SetTargetName(Timeline, String) Method

Definition

Sets the value of the Storyboard.TargetName XAML attached property for a target element.

public:
 static void SetTargetName(Timeline ^ element, Platform::String ^ name);
 static void SetTargetName(Timeline const& element, winrt::hstring const& name);
public static void SetTargetName(Timeline element, string name);
function setTargetName(element, name)
Public Shared Sub SetTargetName (element As Timeline, name As String)

Parameters

element
Timeline

The target element to set the value for.

name
String

Platform::String

winrt::hstring

The Storyboard.TargetName value of the target element to set. This should correspond to an existing Name or x:Name value on the UI element that the animation targets.

Applies to

See also