Udostępnij za pośrednictwem


BindingExpression Class

Definition

Contains information about a single instance of a Binding.

public ref class BindingExpression : BindingExpressionBase
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BindingExpression : BindingExpressionBase
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class BindingExpression : BindingExpressionBase
Public Class BindingExpression
Inherits BindingExpressionBase
Inheritance
Object Platform::Object IInspectable BindingExpressionBase BindingExpression
Attributes

Remarks

The Binding class is the high-level class for the declaration of a binding. The BindingExpression class is the underlying object that maintains the connection between the binding source and the binding target. A Binding contains all the information that can be shared across several BindingExpression objects. A BindingExpression is an instance expression that cannot be shared and that contains all the instance information about the Binding.

You can obtain a BindingExpression object by calling the FrameworkElement.GetBindingExpression method on an object, specifying the dependency property that has the binding.

Properties

DataItem

Gets the binding source object that this BindingExpression uses.

ParentBinding

Gets the Binding object of this BindingExpression.

Methods

UpdateSource()

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

Applies to

See also