Redigera

Dela via


Storyboard.GetTarget(DependencyObject) Method

Definition

Retrieves the Target value of the specified Timeline.

public:
 static System::Windows::DependencyObject ^ GetTarget(System::Windows::DependencyObject ^ element);
public static System.Windows.DependencyObject GetTarget (System.Windows.DependencyObject element);
static member GetTarget : System.Windows.DependencyObject -> System.Windows.DependencyObject
Public Shared Function GetTarget (element As DependencyObject) As DependencyObject

Parameters

element
DependencyObject

The timeline from which to retrieve the TargetName.

Returns

The dependency object targeted by element.

Remarks

Use the Target attached property with animation timelines to indicate the object that they target. For more information about how storyboard targeting works, see TargetName. For more information about how attached properties work, see Attached Properties Overview.

Applies to

See also