Storyboard.SetTargetName(Timeline, String) Storyboard.SetTargetName(Timeline, String) Storyboard.SetTargetName(Timeline, String) 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 element, winrt::hstring name) const;
public static void SetTargetName(Timeline element, String name)
Public Shared Sub SetTargetName(element As Timeline, name As String)

Parameters

element
Timeline Timeline

The target element to set the value for.

name
String String

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.