IBinding
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Defines a component's binding instance.
- C#
- VB.NET
public interface IBinding
Public Interface IBinding
Properties
BindableComponent
IBindableComponent: Returns the IBindableComponent.
Value: The IBindableComponent.
BindingMemberInfo
BindingMemberInfo: Return the binding information based on the dataMember parameter in the #ctor constructor.
Value: A instance of the BindingMemberInfo struct that contains information about this Binding.
ControlUpdateMode
ControlUpdateMode: Returns or sets when changes to the data source are propagated to the bound control property.
Value: One of the ControlUpdateMode values. The default is OnPropertyChanged.
DataSource
Object: Returns the data source for this binding.
Value: An object that represents the data source.
DataSourceNullValue
Object: Returns or sets the value to be stored in the data source if the control value is null or empty.
Value: The System.Object to be stored in the data source when the component property is empty or null. The default is DBNull for value types and null for non-value types.
DataSourceUpdateMode
DataSourceUpdateMode: Returns or sets a value that indicates when changes to the bound control property are propagated to the data source.
Value: A value that indicates when changes are propagated. The default is OnValidation.
FormatInfo
IFormatProvider: Returns or sets the IFormatProvider that provides custom formatting behavior.
Value: The IFormatProvider implementation that provides custom formatting behavior.
FormatString
String: Returns or sets the format specifier characters that indicate how a value is to be displayed.
Value: The string of format specifier characters that indicate how a value is to be displayed.
FormattingEnabled
Boolean: Returns or sets a value indicating whether type conversion and formatting is applied to the control property data.
Value: true if type conversion and formatting of control property data is enabled; otherwise, false. The default is false.
NullValue
Object: Returns or sets the Object to be set as the control property when the data source contains a DBNull value.
Value: The object to be set as the component property when the data source contains a DBNull value. The default is null.
PropertyName
String: Returns the name of the control's data-bound property.
Value: The name of a component property to bind to.
Methods
ReadValue()
Sets the target property to the value read from the data source.
WriteValue()
Reads the current value from the target property and writes it to the data source.
Implemented By
| Name | Description |
|---|---|
| Binding | Represents the simple binding between the property value of an object and the property value of a IBindableComponent. |