共用方式為


BindingOperations.GetPriorityBindingExpression 方法

定義

傳回與指定物件上的指定繫結目標屬性相關聯的 PriorityBindingExpression 物件。

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

參數

target
DependencyObject

dp 所在的繫結目標物件。

dp
DependencyProperty

要從中擷取 PriorityBindingExpression 物件的繫結目標屬性。

傳回

與指定屬性相關聯的 PriorityBindingExpression 物件;如果不存在,則為 null

例外狀況

targetdp 參數不可以是 null

適用於

另請參閱