Export (0) Print
Expand All

Binding Members

Provides high-level access to the definition of a binding, which connects the properties of binding target objects (typically, WPF elements), and any data source (for example, a database, an XML file, or any object that contains data).

The following tables list the members exposed by the Binding type.

  Name Description
Public method Binding Overloaded. Initializes a new instance of the Binding class.
Top

  Name Description
Public field Static DoNothing Used as a returned value to instruct the binding engine not to perform any action.
Public field Static IndexerName Used as the PropertyName of System.ComponentModel.PropertyChangedEventArgs to indicate that an indexer property has changed.
Public field Static SourceUpdatedEvent Identifies the SourceUpdated attached event.
Public field Static TargetUpdatedEvent Identifies the TargetUpdated attached event.
Public field Static XmlNamespaceManagerProperty Identifies the XmlNamespaceManager attached property.
Top

  Name Description
Public property XmlNamespaceManager Gets or sets the XmlNamespaceManager used to perform namespace-aware XPath queries in XML bindings.
Top

  Name Description
Public property AsyncState This member is not is not intended to be used directly from your code.
Public property BindsDirectlyToSource Gets or sets a value that indicates whether to evaluate the Path relative to the data item or the DataSourceProvider object.
Public property Converter Gets or sets the converter to use.
Public property ConverterCulture Gets or sets the culture in which to evaluate the converter.
Public property ConverterParameter Gets or sets the parameter to pass to the Converter.
Public property ElementName Gets or sets the name of the element to use as the binding source object.
Public property FallbackValue  Gets or sets the value to use when the binding is unable to return a value.(inherited from BindingBase)
Public property IsAsync Gets or sets a value that indicates whether the Binding should get and set values asynchronously.
Public property Mode Gets or sets a value that indicates the direction of the data flow in the binding.
Public property NotifyOnSourceUpdated Gets or sets a value that indicates whether to raise the SourceUpdated event when a value is transferred from the binding target to the binding source.
Public property NotifyOnTargetUpdated Gets or sets a value that indicates whether to raise the TargetUpdated event when a value is transferred from the binding source to the binding target.
Public property NotifyOnValidationError Gets or sets a value that indicates whether to raise the Error attached event on the bound object.
Public property Path Gets or sets the path to the binding source property.
Public property RelativeSource Gets or sets the binding source by specifying its location relative to the position of the binding target.
Public property Source Gets or sets the object to use as the binding source.
Public property UpdateSourceExceptionFilter Gets or sets a handler you can use to provide custom logic for handling exceptions that the binding engine encounters during the update of the binding source value. This is only applicable if you have associated an ExceptionValidationRule with your binding.
Public property UpdateSourceTrigger Gets or sets a value that determines the timing of binding source updates.
Public property ValidationRules Gets a collection of rules that check the validity of the user input.
Public property XPath Gets or sets an XPath query that returns the value on the XML binding source to use.
Top

(see also Protected Methods )
  Name Description
Public method Static AddSourceUpdatedHandler Adds a handler for the SourceUpdated attached event.
Public method Static AddTargetUpdatedHandler Adds a handler for the TargetUpdated attached event.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static GetXmlNamespaceManager Returns an XML namespace manager object used by the binding attached to the specified object.
Public method ProvideValue  Returns an object that should be set on the property where this binding and extension are applied. This method is sealed. (inherited from BindingBase)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static RemoveSourceUpdatedHandler Removes a handler for the SourceUpdated attached event.
Public method Static RemoveTargetUpdatedHandler Removes a handler for the TargetUpdated attached event.
Public method Static SetXmlNamespaceManager Sets a namespace manager object used by the binding attached to the provided element.
Public method ShouldSerializeFallbackValue  Returns a value that indicates whether serialization processes should serialize the effective value of the FallbackValue property on instances of this class. (inherited from BindingBase)
Public method ShouldSerializePath Indicates whether the Path property should be persisted.
Public method ShouldSerializeSource Indicates whether the Source property should be persisted.
Public method ShouldSerializeValidationRules Indicates whether the ValidationRules property should be persisted.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Public event Static SourceUpdated Occurs when a value is transferred from the binding target to the binding source, but only for bindings with the NotifyOnSourceUpdated value set to true.
Public event Static TargetUpdated Occurs when a value is transferred from the binding source to the binding target, but only for bindings with the NotifyOnTargetUpdated value set to true.
Top

Community Additions

ADD
Show:
© 2014 Microsoft