BindingExpressionBase 類別

定義

public ref class BindingExpressionBase abstract : System::Windows::Expression, System::Windows::IWeakEventListener
public abstract class BindingExpressionBase : System.Windows.Expression, System.Windows.IWeakEventListener
type BindingExpressionBase = class
    inherit Expression
    interface IWeakEventListener
Public MustInherit Class BindingExpressionBase
Inherits Expression
Implements IWeakEventListener
繼承
BindingExpressionBase
衍生
實作

備註

如需系結和系結運算式的詳細資訊, 請參閱資料系結總覽中的 "Binding and system.windows.data.bindingexpression>"。For information about bindings and binding expressions, see "Binding and BindingExpression" in Data Binding Overview.

屬性

BindingGroup

取得這個繫結運算式所屬的 BindingGroupGets the BindingGroup that this binding expression belongs to.

HasError

取得值,這個值表示父繫結是否有驗證失敗規則。Gets a value that indicates whether the parent binding has a failed validation rule.

HasValidationError

取得值,這個值表示父繫結是否有驗證失敗規則。Gets a value that indicates whether the parent binding has a failed validation rule.

IsDirty

取得或設定值,指出繫結目標是否有尚未寫入至來源的值。Gets or sets a value that indicates whether the target of the binding has a value that has not been written to the source.

ParentBindingBase

取得 BindingBase 物件,這個 BindingExpressionBase 物件是從其中建立。Gets the BindingBase object from which this BindingExpressionBase object is created.

Status

取得繫結運算式的狀態。Gets the status of the binding expression.

Target

取得做為此繫結運算式的繫結目標物件的項目。Gets the element that is the binding target object of this binding expression.

TargetProperty

取得這個繫結運算式的繫結目標屬性。Gets the binding target property of this binding expression.

ValidationError

取得造成這個 ValidationError 執行個體無效的 BindingExpressionBaseGets the ValidationError that caused this instance of BindingExpressionBase to be invalid.

ValidationErrors

取得 ValidationError 物件的集合,這些物件造成了這個 BindingExpressionBase 執行個體無效。Gets a collection of ValidationError objects that caused this instance of BindingExpressionBase to be invalid.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
UpdateSource()

將目前的繫結目標值傳送至 TwoWayOneWayToSource 繫結中的繫結來源。Sends the current binding target value to the binding source in TwoWay or OneWayToSource bindings.

UpdateTarget()

強制執行從繫結來源至繫結目標的資料傳輸。Forces a data transfer from the binding source to the binding target.

ValidateWithoutUpdate()

在與 ValidationRule 屬性已設為 BindingValidationStep 的相關聯 RawProposedValue 上,執行任何 ConvertedProposedValue 物件。Runs any ValidationRule objects on the associated Binding that have the ValidationStep property set to RawProposedValue or ConvertedProposedValue. 這個方法不會更新來源。This method does not update the source.

明確介面實作

IWeakEventListener.ReceiveWeakEvent(Type, Object, EventArgs)

這個成員支援 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基礎結構,但是您不可以從程式碼直接使用它。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

適用於