DependencyPropertyHelper.GetValueSource 方法

定義

傳回結構,該結構報告在特定 DependencyObject 上指定相依性屬性的各種中繼資料和屬性系統特性。

public:
 static System::Windows::ValueSource GetValueSource(System::Windows::DependencyObject ^ dependencyObject, System::Windows::DependencyProperty ^ dependencyProperty);
public static System.Windows.ValueSource GetValueSource (System.Windows.DependencyObject dependencyObject, System.Windows.DependencyProperty dependencyProperty);
static member GetValueSource : System.Windows.DependencyObject * System.Windows.DependencyProperty -> System.Windows.ValueSource
Public Shared Function GetValueSource (dependencyObject As DependencyObject, dependencyProperty As DependencyProperty) As ValueSource

參數

dependencyObject
DependencyObject

項目,其中包含要報告其資訊的 dependencyProperty

dependencyProperty
DependencyProperty

要報告其資訊的相依性屬性的識別項。

傳回

報告特定資訊的 ValueSource 結構。

備註

您應該在內容中呼叫這個方法,讓屬性值判斷的晚期參與者能夠對屬性採取行動。 例如,除非載入專案樹狀結構中的所有參與者元素並傳播非同步系結,而且系結來源物件已連接,否則屬性上的系結可能無法使用中。 同樣地,應該可以使用包含所有必要主題字典的資源。

適用於

另請參閱