共用方式為


BindingOperations.GetPriorityBinding 方法

定義

擷取針對指定之屬性設定的 PriorityBinding 物件。

public:
 static System::Windows::Data::PriorityBinding ^ GetPriorityBinding(System::Windows::DependencyObject ^ target, System::Windows::DependencyProperty ^ dp);
public static System.Windows.Data.PriorityBinding GetPriorityBinding (System.Windows.DependencyObject target, System.Windows.DependencyProperty dp);
static member GetPriorityBinding : System.Windows.DependencyObject * System.Windows.DependencyProperty -> System.Windows.Data.PriorityBinding
Public Shared Function GetPriorityBinding (target As DependencyObject, dp As DependencyProperty) As PriorityBinding

參數

target
DependencyObject

dp 所在的物件。

dp
DependencyProperty

要從其中擷取繫結的繫結目標屬性。

傳回

PriorityBinding

針對指定之屬性設定的 PriorityBinding 物件;如果未設定 PriorityBinding 物件,則為 null

例外狀況

targetdp 參數都不能為 null。

適用於

另請參閱