Editare

Partajați prin


PriorityBindingExpression Class

Definition

Contains instance information about a single instance of a PriorityBinding.

public ref class PriorityBindingExpression sealed : System::Windows::Data::BindingExpressionBase
public sealed class PriorityBindingExpression : System.Windows.Data.BindingExpressionBase
type PriorityBindingExpression = class
    inherit BindingExpressionBase
Public NotInheritable Class PriorityBindingExpression
Inherits BindingExpressionBase
Inheritance
PriorityBindingExpression

Remarks

PriorityBinding is a single run-time instance of a PriorityBindingExpression. Therefore, it describes a collection of BindingExpression objects that are attached to a single binding target property, which receives its value from the first BindingExpression object in the collection that returns a value successfully. For information about binding expressions, see the Binding and BindingExpression section in the Data Binding Overview.

The binding engine determines which of the BindingExpression objects is the ActiveBindingExpression based on priority. For more information, see PriorityBinding.

Properties

ActiveBindingExpression

Gets the active BindingExpression object.

BindingExpressions

Gets the collection of BindingExpression objects inside this instance of PriorityBindingExpression.

BindingGroup

Gets the BindingGroup that this binding expression belongs to.

(Inherited from BindingExpressionBase)
HasError

Gets a value that indicates whether the parent binding has a failed validation rule.

(Inherited from BindingExpressionBase)
HasValidationError

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.

(Inherited from BindingExpressionBase)
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.

(Inherited from BindingExpressionBase)
ParentBindingBase

Gets the BindingBase object from which this BindingExpressionBase object is created.

(Inherited from BindingExpressionBase)
ParentPriorityBinding

Gets the PriorityBinding object from which this PriorityBindingExpression is created.

Status

Gets the status of the binding expression.

(Inherited from BindingExpressionBase)
Target

Gets the element that is the binding target object of this binding expression.

(Inherited from BindingExpressionBase)
TargetProperty

Gets the binding target property of this binding expression.

(Inherited from BindingExpressionBase)
ValidationError

Gets the ValidationError that caused this instance of BindingExpressionBase to be invalid.

(Inherited from BindingExpressionBase)
ValidationErrors

Gets a collection of ValidationError objects that caused this instance of BindingExpressionBase to be invalid.

(Inherited from BindingExpressionBase)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
UpdateSource()

Updates the source on the active binding.

UpdateSource()

Sends the current binding target value to the binding source in TwoWay or OneWayToSource bindings.

(Inherited from BindingExpressionBase)
UpdateTarget()

Updates the target on the active binding.

UpdateTarget()

Forces a data transfer from the binding source to the binding target.

(Inherited from BindingExpressionBase)
ValidateWithoutUpdate()

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.

(Inherited from BindingExpressionBase)

Explicit Interface Implementations

IWeakEventListener.ReceiveWeakEvent(Type, Object, EventArgs)

This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

(Inherited from BindingExpressionBase)

Applies to

See also