Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Storyboard.SetTargetName(Timeline, String) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?