Storyboard.SetTargetProperty(DependencyObject, PropertyPath) 方法

定義

讓指定的 Timeline 以指定的相依性物件為目標。

public:
 static void SetTargetProperty(System::Windows::DependencyObject ^ element, System::Windows::PropertyPath ^ path);
public static void SetTargetProperty (System.Windows.DependencyObject element, System.Windows.PropertyPath path);
static member SetTargetProperty : System.Windows.DependencyObject * System.Windows.PropertyPath -> unit
Public Shared Sub SetTargetProperty (element As DependencyObject, path As PropertyPath)

參數

element
DependencyObject

與所指定相依性屬性相關聯的 Timeline

path
PropertyPath

路徑,描述要繪製的相依性屬性。

備註

這個方法會在 TargetProperty 指定的 物件上設定附加屬性。 如需分鏡腳本目標運作方式的詳細資訊,請參閱 TargetProperty 。 如需附加屬性運作方式的詳細資訊,請參閱 附加屬性概觀

適用於

另請參閱