Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Wisej.Web.Binding
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents the simple binding between the property value of an object and the property value of a IBindableComponent.
Initializes a new instance of the Binding class that simple-binds the indicated control property to the specified data member of the data source.
Throws:
Exception propertyName is neither a valid property of a control nor an empty string ("").
ArgumentException The property given by propertyName does not exist on the control.
Initializes a new instance of the Binding class that binds the indicated control property to the specified data member of the data source, and optionally enables formatting to be applied.
Throws:
ArgumentException The property given by propertyName does not exist on the control; or the property given is a read-only property.
Exception Formatting is disabled and propertyName is neither a valid property of a control nor an empty string ("").
Initializes a new instance of the Binding class that binds the specified control property to the specified data member of the specified data source. Optionally enables formatting and propagates values to the data source based on the specified update setting.
Throws:
ArgumentException The property given by propertyName does not exist on the control; or the data source or data member or control property specified are associated with another binding in the collection.
Initializes a new instance of the Binding class that binds the indicated control property to the specified data member of the specified data source. Optionally enables formatting, propagates values to the data source based on the specified update setting, and sets the property to the specified value when a DBNull is returned from the data source.
Throws:
ArgumentException The property given by propertyName does not exist on the control; or the data source or data member or control property specified are associated with another binding in the collection.
Initializes a new instance of the Binding class that binds the specified control property to the specified data member of the specified data source. Optionally enables formatting with the specified format string; propagates values to the data source based on the specified update setting; and sets the property to the specified value when a DBNull is returned from the data source.
Throws:
ArgumentException The property given by propertyName does not exist on the control; or the data source or data member or control property specified are associated with another binding in the collection.
Initializes a new instance of the Binding class with the specified control property to the specified data member of the specified data source. Optionally enables formatting with the specified format string; propagates values to the data source based on the specified update setting; enables formatting with the specified format string; sets the property to the specified value when a DBNull is returned from the data source; and sets the specified format provider.
Throws:
ArgumentException The property given by propertyName does not exist on the control; or the data source or data member or control property specified are associated with another binding in the collection.
IBindableComponent: Returns the IBindableComponent this Binding is associated with. (Default: null
)
BindingMemberInfo: Return the binding information based on the dataMember parameter in the #ctor constructor.
Control: Returns the control that the binding belongs to. (Default: null
)
ControlUpdateMode: Returns or sets when changes to the data source are propagated to the bound control property. (Default: OnPropertyChanged
)
Object: Returns the data source for this binding.
Object: Returns or sets the value to be stored in the data source if the control value is null or empty.
DataSourceUpdateMode: Returns or sets a value that indicates when changes to the bound control property are propagated to the data source. (Default: OnValidation
)
IFormatProvider: Returns or sets the IFormatProvider that provides custom formatting behavior. (Default: null
)
String: Returns or sets the format specifier characters that indicate how a value is to be displayed.
Boolean: Returns or sets a value indicating whether type conversion and formatting is applied to the control property data. (Default: False
)
Boolean: Returns whether the binding is active.
Object: Returns or sets the Object to be set as the control property when the data source contains a DBNull value.
String: Returns the name of the control's data-bound property. (Default: ""
)
Sets the control property to the value read from the data source.
Reads the current value from the control property and writes it to the data source.
BindingCompleteEventHandler Fired when the FormattingEnabled property true and a binding operation is completed.
ConvertEventHandler Fired when the property of a control is bound to a data value.
ConvertEventHandler Fired when the value of a data-bound control changes.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
propertyName
The name of the control property to bind.
dataSource
An Object that represents the data source.
dataMember
The property or list to bind to.
propertyName
The name of the control property to bind.
dataSource
An Object that represents the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
dataSourceUpdateMode
One of the DataSourceUpdateMode values.
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
dataSourceUpdateMode
One of the DataSourceUpdateMode values.
nullValue
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
dataSourceUpdateMode
One of the DataSourceUpdateMode values.
nullValue
formatString
One or more format specifier characters that indicate how a value is to be displayed.
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
dataSourceUpdateMode
One of the DataSourceUpdateMode values.
nullValue
formatString
One or more format specifier characters that indicate how a value is to be displayed.
formatInfo
An implementation of IFormatProvider to override default formatting behavior.
Defines a component's binding instance.
Contains information that enables a to resolve a data binding to either the property of an object or the property of the current object in a list of objects.
Initializes a new instance of the class.
Name | Type | Description |
---|
: Returns the property name of the data-bound object.
: Returns the information that is used to specify the property name of the data-bound object.
: Returns the property name, or the period-delimited hierarchy of property names, that comes before the property name of the data-bound object.
Name | Description |
---|
Represents a collection of objects for a control.
: Returns the total number of bindings in the collection.
: Returns the at the specified index.
The collection doesn't contain an item at the specified index.
Fired when the collection has changed.
Fired when the collection is about to change.
dataMember | A navigation path that resolves to either the property of an object or the property of the current object in a list of objects. |
Return the binding information based on the dataMember parameter in the constructor.
Return the binding information based on the dataMember parameter in the constructor.
Wisej.Web.CommandArgs<T>
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents typed data passed to ICommand.
Initializes a new CommandArgs.
Initializes a new CommandArgs.
T: Returns or sets the current data item.
Name | Description |
---|---|
Name | Type | Description |
---|---|---|
T
Type of the CommandArgs property.
args
Original data used to initialize the typed CommandArgs object.
Wisej.Web.CommandManager
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Supports the ICommandSource implementations.
Causes all the ICommandSource components to refresh their commands by invoking the CanExecute method.
CancelEventHandler Fired when a ICommandSource invokes its command's CanExecute method.
HandledEventHandler Fired when a ICommandSource invokes its command's Execute method.
Wisej.Web.CurrencyManager
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Keeps data-bound controls synchronized with each other: showing data from the same record.
Int32: Returns the number of items in the list.
Object: Returns the current item in the list.
IList: Returns the list for this CurrencyManager.
Int32: Returns or sets the current position within the list.
Boolean: Returns true when the bound data source can accept changes. Calling SuspendBinding sets this flag to false and ResumeBinding sets it to true (default).
Adds a new item to the underlying list.
Throws:
NotSupportedException The underlying data source does not implement IBindingList, or the collection element doesn't implement a public parameterless constructor, or the data source has thrown an exception because the user has attempted to add a row to a read-only or fixed-size DataView.
Forces a refresh of the data-bound list.
Causes a control bound to this data source to re-read the current item and refresh the displayed value.
Causes a control bound to this data source to re-read the item at the specified itemIndex and refresh the displayed value.
Resumes data binding.
Suspends data binding to prevents changes from updating the bound data source.
ItemChangedEventHandler Fired when the current item has been altered.
ListChangedEventHandler Fired when the list changes or an item in the list changes.
EventHandler Fired when the metadata of the List has changed.
Parameter | Type | Description |
---|---|---|
itemIndex
The index of the item that has changed.
Represents the method that will handle the event of the class.
Name | Type | Description |
---|
Name | Description |
---|
sender | The source of the event. |
e |
Fired when the current item has been altered. |
An that contains the event data.
Wisej.Web.IBinding
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Defines a component's binding instance.
IBindableComponent: Returns the IBindableComponent.
BindingMemberInfo: Return the binding information based on the dataMember parameter in the #ctor constructor.
ControlUpdateMode: Returns or sets when changes to the data source are propagated to the bound control property.
Object: Returns the data source for this binding.
Object: Returns or sets the value to be stored in the data source if the control value is null or empty.
DataSourceUpdateMode: Returns or sets a value that indicates when changes to the bound control property are propagated to the data source.
IFormatProvider: Returns or sets the IFormatProvider that provides custom formatting behavior.
String: Returns or sets the format specifier characters that indicate how a value is to be displayed.
Boolean: Returns or sets a value indicating whether type conversion and formatting is applied to the control property data.
Object: Returns or sets the Object to be set as the control property when the data source contains a DBNull value.
String: Returns the name of the control's data-bound property.
Sets the target property to the value read from the data source.
Reads the current value from the target property and writes it to the data source.
Wisej.Web.PropertyManager
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Cancels the current edit.
Ends the current edit operation.
Causes a control bound to this data source to re-read the current item and refresh the displayed value.
Resumes data binding.
Suspends the data binding between a data source and a data-bound property.
Name | Description |
---|---|
Maintains a between an object's property and a data-bound control property.
Initializes a new instance of .
: Returns the object owning the data-bound property belongs.
Represents the simple binding between the property value of an object and the property value of a IBindableComponent.
Name | Description |
---|---|
Name | Description |
---|---|
ControlUpdate
The control property value is being updated from the data source.
DataSourceUpdate
The data source value is being updated from the control property.
Returns the direction of the binding operation.
Wisej.Web.BindingCompleteEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Provides data for the BindingComplete event.
Initializes a new instance of the BindingCompleteEventArgs class with the specified binding, error state and text, binding context, exception, and whether the binding should be canceled.
Initializes a new instance of the BindingCompleteEventArgs class with the specified binding, error state and text, binding context, and exception.
Initializes a new instance of the BindingCompleteEventArgs class with the specified binding, error state and text, and binding context.
Initializes a new instance of the BindingCompleteEventArgs class with the specified binding, error state, and binding context.
Binding: Returns the binding associated with this occurrence of a BindingComplete event.
BindingCompleteContext: Returns the direction of the binding operation.
BindingCompleteState: Returns the completion state of the binding operation.
String: Returns the text description of the error that occurred during the binding operation.
Exception: Returns the exception that occurred during the binding operation.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
binding
The binding associated with this occurrence of a BindingComplete event.
state
One of the BindingCompleteState values.
context
One of the BindingCompleteContext values.
errorText
The error text or exception message for errors that occurred during the binding.
exception
The Exception that occurred during the binding.
cancel
true to cancel the binding and keep focus on the current control; false to allow focus to shift to another control.
binding
The binding associated with this occurrence of a BindingComplete event.
state
One of the BindingCompleteState values.
context
One of the BindingCompleteContext values.
errorText
The error text or exception message for errors that occurred during the binding.
exception
The Exception that occurred during the binding.
binding
The binding associated with this occurrence of a BindingComplete event.
state
One of the BindingCompleteState values.
context
One of the BindingCompleteContext values.
errorText
The error text or exception message for errors that occurred during the binding.
binding
The binding associated with this occurrence of a BindingComplete event.
state
One of the BindingCompleteState values.
context
One of the BindingCompleteContext values.
Represents the delegate that handles the BindingComplete event.
Wisej.Web.BindingCompleteEventHandler
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents the delegate that handles the BindingComplete event.
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
Name | Description |
---|
Name | Description |
---|
sender
The source of the event.
e
A BindingCompleteEventArgs that contains the event data.
Fired when the FormattingEnabled property true and a binding operation is completed.
Fired at the completion of a data-binding operation.
Fired when all the clients have been bound to this BindingSource.
DataError | The binding operation failed with a data error. |
Exception | The binding operation failed with an exception. |
Success | The binding operation completed successfully. |
Returns the completion state of the binding operation. |
Wisej.Web.BindingManagerDataErrorEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Provides data for the DataError event.
Initializes a new instance of the BindingManagerDataErrorEventArgs class.
Exception: Returns the Exception caught in the binding process.
Wisej.Web.BindingManagerBase
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Adds a new item to the underlying list.
Throws:
Cancels the current edit operation.
Ends the current edit operation.
Returns the property descriptor collection for the underlying list.
Removes the item at the specified index.
Throws:
Causes a control bound to this data source to re-read the current item and refresh the displayed value.
Causes a control bound to this data source to re-read the item at the specified itemIndex and refresh the displayed value.
Resumes data binding.
Suspends data binding to prevents changes from updating the bound data source.
Reads the current values from the data source and sends them to the control.
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
Manages all objects that are bound to the same data source and data member.
: Returns the collection of bindings being managed.
: Returns the number of items in the list.
: Returns the current item in the list.
: Returns whether binding is suspended.
: Returns or sets the position of the data binding source within the list.
The underlying data source does not implement , or the data source has thrown an exception because the user has attempted to add a row to a read-only or fixed-size .
Returns: . A for the list.
Parameter | Type | Description |
---|
There is no row at the specified index .
Parameter | Type | Description |
---|
Fired at the completion of a data-binding operation.
Fired when the currently bound item changes.
Fired when the state of the currently bound item changes.
Fired when an is silently handled by the .
Fired after the value of the property has changed.
Name | Description |
---|
Represents the method that will handle the event.
Name | Type | Description |
---|
Name | Description |
---|
exception
The Exception that occurred in the binding process.
Represents the method that will handle the DataError event.
index | The index of the item to remove from the list. |
itemIndex | The index of the item that has changed. |
Keeps data-bound controls synchronized with each other: showing data from the same record. |
sender | The source of the event. |
e |
Wisej.Web.BindingNavigator
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents the navigation and manipulation user interface (UI) for controls that are bound to a data source.
Initializes a new instance of the BindingNavigator class with the specified BindingSource as the data source.
Initializes a new instance of the BindingNavigator class, indicating whether to display the standard navigation user interface (UI).
Button: Returns or sets the "Add New" button.
BindingSource: Returns or sets the BindingSource component that is the source of data. (Default: null
)
Label: Returns or sets the control that displays the total number of items in the associated BindingSource.
String: Gets or sets a string used to format the information displayed in the CountItem control.
Button: Returns or sets the "Delete" button.
Button: Returns or sets the "Move First" button.
Button: Returns or sets the "Move Last" button.
Button: Returns or sets the "Move Next" button.
Button: Returns or sets the "Move Previous" button.
Orientation: Returns or sets a value indicating the horizontal or vertical orientation of the BindingNavigator control.
When the control is docked, this property is managed automatically.
TextBox: Returns or sets the TextBox control that displays the current position within the associated BindingSource.
String: Returns or sets the text to display on the tab. (Default: ""
)
Adds the standard set of navigation items to the BindingNavigator control.
Disables updates to the controls of during the component's initialization.
Enables updates to the controls after the component's initialization has completed.
Causes validation to occur and returns whether validation was successful.
Returns: Boolean. true if validation was successful and focus can shift to the BindingNavigator; otherwise, false.
EventHandler Fired when the state of the navigational user interface (UI) needs to be refreshed to reflect the current state of the underlying data source.
EventHandler Fired when the value of the Text property changes.
Wisej.Web.BindingSource
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Encapsulates the data source for a data-bound component.
Throws:
Throws:
Negative values are treated as 0.
This option fixes a long standing "feature" of the default BindingSource where the property that is the source of a value change is not refreshed automatically after it updates the bound data source. In a scenario where the data source "transforms" the value received from a data-bound control, the source property is not updated while all other bound properties are.
Sorts the data source using the specified property descriptor and sort direction.
Sorts the data source with the specified sort descriptions.
Cancels the current edit operation.
Removes all elements from the list.
Applies pending changes to the underlying data source.
Returns the index of the item in the list with the specified propertyName and value .
Throws:
Searches for the index of the that has the given value in the specified property .
Throws:
Returns the name of the list supplying data for the binding operations.
Throws:
Throws:
Resumes data binding.
Suspends data binding to prevent changes from updating the data-bound data source.
Maintains a between an object's property and a data-bound control property.
A that contains the event data.
Fired when an is silently handled by the .
Fired when a currency-related exception is silently handled by the .
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
Manages the collection of objects for any object that inherits from the class.
Creates a new instance of .
: Returns whether the collection is read-only.
: Returns the that is associated with the data source.
: Returns a that is associated with the data source and data member.
The specified dataMember does not exist in the specified data source.
Returns whether the contains the associated with the data source.
Parameter | Type | Description |
---|
Returns: . true if the contains the ; otherwise, false.
Returns whether the contains the associated with the data source and data member.
Parameter | Type | Description |
---|
Returns: . true if the contains the ; otherwise, false.
Associates a with a new .
Parameter | Type | Description |
---|
Fired when the collection of data sources changes.
Represents data passed to .
Initializes a new instance of .
Name | Type | Description |
---|
: Returns or sets the current .
: Returns or sets the that invoked the command.
: Returns or sets the current .
: Returns or sets the current data item.
Name | Description |
---|
Implements the interface wrapping execute and canExecute actions.
You can use this class and to wrap custom commands to bind to controls that implement the interface. A view model class can expose as many commands as you like. You can bind (or assign) a command to the property (see for example).
Now you can use data binding or a code assignment to connect the view model's Add command to a button's property.
Initializes a new wrapping am execute method and an canExecute method.
Name | Type | Description |
---|
Initializes a new wrapping am execute method and an canExecute method.
Name | Type | Description |
---|
Parameter | Type | Description |
---|
Returns: . true if this command can be executed; otherwise, false.
Parameter | Type | Description |
---|
Fires the event.
Fired when the result of the method changes.
Name | Description |
---|
Name | Description |
---|
Initializes a new instance of the class to the default property values.
Initializes a new instance of the class and adds the to the specified container.
Name | Type | Description |
---|
Initializes a new instance of the class with the specified data source and data member.
Name | Type | Description |
---|
Initializes a new instance of the class with the specified data source.
Name | Type | Description |
---|
: Returns whether items in the underlying list can be edited.
: Returns or sets whether the method can be used to add items to the list.
This property is set to true when the underlying list represented by the property has a fixed size or is read-only.
The property is set to true and the event is not handled when the underlying list type does not have a default constructor.
: Returns whether the items can be removed from the underlying list.
: Returns the total number of items in the underlying list, filtered using the current value.
: Returns the currency manager associated with this .
: Returns the current item in the list.
Use the property to access the current item, but use the property to get the entire list. To determine the type of the current object, use the , or methods. To change the current item, set the property to a new integral value, or use one of the navigation methods such as .
: Returns or sets the list in the data source to which the connector currently binds to. (Default: ""
)
If the contains multiple lists (or tables) of data, you should set the property to the name of one of the sources. Setting this property raises the event
: Returns or sets the data source that the connector binds to. (Default: null
)
The property can be set to a number of data sources, including types, objects, and lists of types. The resulting data source will be exposed as a list. The following table shows some of the common data sources and the resulting list evaluation.
DataSource | List Result |
---|
In addition, can be set to other list types such as and and the will handle them appropriately. In this case, the type contained in the list should have a parameterless constructor. When setting a data source, if the supplied reference contains more than one list or table, you must set the property to a string that specifies the list to bind to. Setting this property raises the event.
: Returns or sets the expression used to filter the items in the underlying . (Default: null
)
Typically used in complex data-binding scenarios, the property allows you to view a subset of the . Only underlying lists that implement the interface support filtering. When is not null, the passes this property to the underlying list. If you set this property during object initialization, the call will be deferred until after initialization is complete. To form a filter value, specify the name of a column followed by an operator and a value to filter on. The accepted filter syntax depends on the underlying data source. If the underlying data source is a , , or , you can specify Boolean expressions using the syntax documented for the DataColumn.Expression property. The value of the Filter property affects the value of the property. Additionally, the Filter value will persist when the data source changes. To stop filtering the , call the RemoveFilter method.
: Returns whether data binding is suspended.
: Returns whether the underlying has a fixed size.
: Return whether the underlying is read-only.
: Returns whether the items in the underlying are sorted.
: Returns whether access to the collection is synchronized (thread safe).
: Returns or sets the list element at the specified index in the underlying .
index is less than zero or is equal to or greater than .
: Returns the underlying data list.
The class uniformly handles different data sources. Ideally the property should be set to a general . However, sometimes it may be necessary to cast this property to a more specific type. The following table shows the underlying list type, which depends on the type or value of the data source.
DataSource Type | Underlying List Description |
---|
If the type retrieved is the interface, the underlying collection may be more complex, such as an or class.
: Returns or sets the index of the current item in the underlying . (Default: -1
)
When setting the property, out-of-range values are treated in the following manner:
Values greater than or equal to are treated as Count minus 1.
Changing the property will adjust the property.
: Returns or sets a value indicating whether events should be raised. (Default: True
)
When the property is false, it suspends the raising of the events. This event indicates that the bound list has been modified in some way, including adding, deleting, inserting, or modifying items.
: Enables the automatic refresh of the source property after a data-bound value has been updated in the data source. (Default: False
)
: Returns or sets the column names used for sorting, and the sort order for viewing the rows in the data source. (Default: null
)
The property is a case-sensitive string that specifies the column names used to sort the rows, along with the . Columns are sorted ascending by default. Multiple columns can be separated by commas, such as "State, ZipCode DESC". To support sorting, the underlying must implement the or interfaces. This capability can be queried through the property. Multicolumn sorting is available when the property is true. Setting the Sort property will change the internal list depending on its type:
If the list is of type , the and properties are set in the internal list.
If the list is of type , the property is set.
The internal list's sort properties are only changed when the sort string is not null. The get accessor for this property will not retrieve the sort value of the internal list; instead, it will return the set accessor value. The value of the property will persist when the data source changes.
: Returns the collection of sort descriptions applied to the data source.
If the data source is not an , the property always returns null.
: Returns the direction the items in the underlying are sorted.
If the data source is not an , the property always returns .
: Returns the that is being used for sorting the underlying .
If the data source is not an , the property always returns null.
: Returns whether the data source supports multi-column sorting.
If the data source is not an , the property always returns false.
: Return whether the data source supports change notification.
: Returns whether the data source supports filtering.
If the data source is not an , the property always returns false.
: Returns whether the data source supports searching with the method.
If the data source is not an , the property always returns false.
: Returns whether the data source supports sorting.
If the data source is not an , the property always returns false.
: Returns an object used to synchronize access to the underlying .
Adds an existing item to the underlying .
Parameter | Type | Description |
---|
Returns: . The index at which the item was added to the underlying .
Adds a new item to the underlying .
Returns: . The object that was created and added to the underlying .
Parameter | Type | Description |
---|
The implements single column sorting using a to indicate a property to sort by and a indicating whether the property contents should be sorted in ascending or descending order. Throws:
The data source is not an .
Parameter | Type | Description |
---|
implements multi-column sorting as a set of property descriptor-direction pairs. Throws:
The data source is not an .
Determines whether the item is present in he underlying .
Parameter | Type | Description |
---|
Returns: . true if the item is found in the .
Copies the contents of the to the specified array , starting at the specified index value.
Parameter | Type | Description |
---|
When the method is called, all pending changes are applied to the underlying data source. This method has no effect unless the objects contained by the data source implement the interface. If the objects do not implement the interface, changes to the data are copied to the underlying data source immediately after each change. This method raises the event.
Parameter | Type | Description |
---|
Returns: . The zero-based index of the item with the specified propertyName and value .
The underlying list is not a with searching functionality implemented.
propertyName does not match a property in the list.
Parameter | Type | Description |
---|
Returns: . The index of the item that has the given value .
property does not match a property in the list.
Retrieves the collection of objects representing the bindable properties defined on the object.
Returns: . An collection of objects that represents the commands on the data source.
Retrieves an enumerator for the underlying .
Returns: . An for the .
Retrieves an collection of objects representing the bindable properties of the data source list type.
Parameter | Type | Description |
---|
Returns: . An collection of objects that represents the properties on this list type used to bind data.
Parameter | Type | Description |
---|
Returns: . The name of the list supplying the data for binding operations.
Returns the related for the specified data member.
Parameter | Type | Description |
---|
Returns: . The related for the specified data member.
Returns the index of the specified item in the underlying .
Parameter | Type | Description |
---|
Returns: . The index of the first occurrence of item in the .
Inserts an item into the at the specified index .
Parameter | Type | Description |
---|
index is less than zero or greater than .
The list is read-only or has a fixed size.
Moves the current position to the first item in the .
Moves the current position to the last item in the .
Moves the current position to the next item in the .
Moves the current position to the previous item in the .
Removes the specified item from the .
Parameter | Type | Description |
---|
Removes the item at the specified index from the .
Parameter | Type | Description |
---|
Removes the current item from the .
Removes the filter associated with this
Removes the sort information associated with this .
The underlying data source does not support sorting.
Causes a control bound to this to re-read all the items and refresh their displayed value.
Causes a control bound to this to re-read all the items and refresh their displayed value.
Parameter | Type | Description |
---|
Causes a control bound to this to re-read the current item and refresh the displayed value.
Causes a control bound to this to read the item at the specified itemIndex and refresh the displayed value.
Parameter | Type | Description |
---|
Fired before an item is added to the underlying .
Fired when all the clients have been bound to this .
Occurs when the currently bound item changes.
Occurs when a property value of the property has changed.
Fired when a currency-related exception is silently handled by the .
Fired when the property value has changed.
Fired when the property value has changed.
Fired when the underlying changes or an item in the list changes.
Fired after the value of the property has changed.
Name | Description |
---|
bindingSource
The BindingSource used as a data source.
addStandardItems
true to show the standard navigational UI; otherwise, false.
Bindable components implement this interface.
Controls that support drag & drop operations implement this interface.
Provides access to common image properties across the controls that implement this interface.
All wisej components implement this interface.
All wisej controls derived from the Control class must implement this interface.
Allows an object to serialize itself.
dataSource |
dataSource |
dataMember |
newBindingContext |
binding |
dataItem | Current data item in the data source, or null. |
commandSource |
bindingContext |
currencyManager |
execute |
canExecute |
execute |
canExecute |
args |
args |
Defines a command that can be used for data binding. |
container |
dataSource |
dataMember | The specific column or list name within the data source to bind to. |
dataSource |
null | An empty |
null with | Not supported, raises |
Non-list type or object of type "T" | Empty |
An |
List instance containing type "T" |
An empty |
None; an attempt to get the List will throw an |
An | An |
An | The return value from a call to the GetList() method of this |
An | An |
An | An |
A non- | A |
An | An |
An | An |
The | A |
A Type that represents an | An instance created by a call to the CreateInstance(Type) method of the |
The | A |
The | None; an attempt to get the |
item |
property |
sort |
sorts |
item |
array | The destination array. |
index | The index in the destination array at which to start the copy. |
propertyName | The name of the property to search. |
value | The value of the item with the specified propertyName to find. |
property |
value | The value of the property to match. |
listAccessors |
listAccessors |
dataMember | The name of column or list, within the data source to retrieve the currency manager for. |
item | item to locate. |
index | Index at which to insert the item. |
item | Item to insert, it can be null. |
item | Item to remove. |
index | Index of the item to remove. |
metadataChanged | true if the schema has changed; false if only the data has changed. |
itemIndex | The index of the item that has changed. |
Provides custom binding management for components. |
Wisej.Web.ConvertEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Base for the specialized convert event handlers.
Initializes a new instance of the ConvertEventArgs class.
Type: Returns the data type of the desired value.
Object: Returns or sets the value of the ConvertEventArgs.
Wisej.Web.Command<T>
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Implements the ICommand interface wrapping execute and canExecute actions.
You can use this class to wrap custom commands to bind to controls that implement the ICommandSource interface and need to access the typed data source records. In the snippet below, the CommandDemoViewModel class derives from BindingList<Customer> and allows the commands to directly interact with the typed DataItem property.
Now you can use data binding or a code assignment to connect the view model's Add command to a button's Command property.
Initializes a new instance of Command.
Wisej.Web.ControlBindingsCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents the collection of data bindings for a IBindableComponent.
Initializes a new instance of the ControlBindingsCollection class with the specified bindable control.
IBindableComponent: Returns the IBindableComponent associated the binding collection.
Control: Returns the Control that the collection belongs to.
DataSourceUpdateMode: Returns or sets the default DataSourceUpdateMode for a Binding in the collection.
Binding: Returns the Binding specified by the control's property name.
Binding: Returns the Binding at the specified index.
Throws:
IndexOutOfRangeException The collection doesn't contain an item at the specified index.
Adds the specified Binding to the collection.
Throws:
ArgumentNullException The binding is null.
ArgumentException The control property is already data-bound.
ArgumentException The Binding does not specify a valid column.
Creates a Binding using the specified control property name, data source, and data member, and adds it to the collection.
Returns: Binding. The newly created Binding.
Throws:
Exception The propertyName is already data-bound.
Exception The dataMember doesn't specify a valid member of the dataSource .
Creates a binding with the specified control property name, data source, data member, and information about whether formatting is enabled, and adds the binding to the collection.
Returns: Binding. The newly created Binding.
Throws:
ArgumentException The property given by propertyName does not exist on the control.-or-The property given is a read-only property.
Exception If formatting is disabled and the propertyName is neither a valid property of a control nor an empty string ("").
Creates a binding with the specified control property name, data source, data member, and information about whether formatting is enabled, and adds the binding to the collection.
Returns: Binding. The newly created Binding.
Throws:
ArgumentException The property given by propertyName does not exist on the control.-or-The property given is a read-only property.
Exception If formatting is disabled and the propertyName is neither a valid property of a control nor an empty string ("").
Creates a binding with the specified control property name, data source, data member, and information about whether formatting is enabled, and adds the binding to the collection.
Returns: Binding. The newly created Binding.
Throws:
ArgumentException The property given by propertyName does not exist on the control.-or-The property given is a read-only property.
Exception If formatting is disabled and the propertyName is neither a valid property of a control nor an empty string ("").
Creates a binding that binds the specified control property to the specified data member of the specified data source, optionally enabling formatting, propagating values to the data source based on the specified update setting, and adding the binding to the collection.
Returns: Binding. The newly created Binding.
Throws:
ArgumentException The property given by propertyName does not exist on the control or is read-only.-or-The specified data member does not exist on the data source.-or-The data source, data member, or control property specified are associated with another binding in the collection.
Creates a binding that binds the specified control property to the specified data member of the specified data source, optionally enabling formatting, propagating values to the data source based on the specified update setting, setting the property to the specified value when DBNull is returned from the data source, and adding the binding to the collection.
Returns: Binding. The newly created Binding
Throws:
ArgumentException The property given by propertyName does not exist on the control or is read-only.-or-The specified data member does not exist on the data source.-or-The data source, data member, or control property specified are associated with another binding in the collection.
Creates a binding that binds the specified control property to the specified data member of the specified data source, optionally enabling formatting with the specified format string, propagating values to the data source based on the specified update setting, setting the property to the specified value when DBNull is returned from the data source, and adding the binding to the collection.
Returns: Binding. The newly created Binding
Throws:
ArgumentException The property given by propertyName does not exist on the control or is read-only.-or-The specified data member does not exist on the data source.-or-The data source, data member, or control property specified are associated with another binding in the collection.
Creates a binding that binds the specified control property to the specified data member of the specified data source, optionally enabling formatting with the specified format string, propagating values to the data source based on the specified update setting, setting the property to the specified value when DBNull is returned from the data source, setting the specified format provider, and adding the binding to the collection.
Returns: Binding. The newly created Binding.
Throws:
ArgumentException The property given by propertyName does not exist on the control or is read-only.-or-The specified data member does not exist on the data source.-or-The data source, data member, or control property specified are associated with another binding in the collection.
Removes all bindings in the collection.
Removes the specified Binding from the collection.
Throws:
NullReferenceException The binding is null.
Removes the Binding at the specified index.
Throws:
ArgumentOutOfRangeException The index value is less than 0, or it is greater than the number of bindings in the collection.
CollectionChangeEventHandler Fired when the collection has changed.
CollectionChangeEventHandler Fired when the collection is about to change.
Wisej.Web.ListBindingHelper
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Provides functionality to discover a bindable list and the properties of the items contained in the list when they differ from the public properties of the object to which they bind.
Returns a list associated with the specified data source.
Returns an object, typically a list, from the evaluation of a specified data source and optional data member.
Throws:
Throws:
Returns the data type of the items in the specified list.
Returns the data type of the items in the specified data source.
An that represents the data source.
An that represents the data source.
The information needed to resolve to a specific .
The new to associate with the .
The to associate with the new .
The that invoked the command.
Current or null.
The for the current data source, or null.
Represents typed data passed to .
Invoked by the to perform a command.
Invoked by the to determine whether it can execute the execute function.
Invoked by the to perform a command.
Invoked by the to determine whether it can execute the execute function.
A that contains data that can be used by the command.
A that contains data that can be used by the command.
Implements the interface wrapping execute and canExecute actions.
The to add the current to.
The data source for the .
The data source for the .
Item to add the underlying .
A that describes the property by which to sort the data source.
A indicating how the list should be sorted.
A containing the sort descriptions to apply to the data source.
Item to locate in the underlying .
The to search.
An array of objects to find in the type.
An array of objects to find in the list as bindable.
Name | Description |
---|---|
Name | Description |
---|---|
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
Name | Description |
---|---|
Name | Description |
---|---|
Name | Description |
---|---|
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
Name | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
Provides data for the event.
: Returns the position of the item being changed within the list.
Name | Description |
---|
: Returns the associated with this .
Return the for this and the specified data member.
Parameter | Type | Description |
---|
Returns: . The related obtained from this and the specified data member.
Name | Description |
---|
Parameter | Type | Description |
---|
Returns: . An representing the underlying list if it exists; otherwise, the original data source specified by list .
Parameter | Type | Description |
---|
Returns: . An representing the underlying list if it was found; otherwise, dataSource .
The specified data member name did not match any of the properties found for the data source.
Returns the that describes the properties of an item type contained in a specified data source, or properties of the specified data source.
Parameter | Type | Description |
---|
Returns: . The containing the properties of the items contained in list , or properties of list..
Returns the that describes the properties of an item type contained in a collection property of a data source. Uses the specified array to indicate which properties to examine.
Parameter | Type | Description |
---|
Returns: . The describing the properties of the item type contained in a collection property of the data source.
Returns the that describes the properties of an item type contained in the specified data member of a data source. Uses the specified array to indicate which properties to examine.
Parameter | Type | Description |
---|
Returns: . The describing the properties of an item type contained in a collection property of the specified data source.
The specified data member could not be found in the specified data source.
Parameter | Type | Description |
---|
Returns: . The of the items contained in the list.
Parameter | Type | Description |
---|
Returns: . For complex data binding, the of the items represented by the dataMember in the data source; otherwise, the of the item in the list itself.
Returns the name of an underlying list, given a data source and optional array.
Parameter | Type | Description |
---|
Returns: . The name of the list in the data source, as described by listAccessors , or the name of the data source type.
: Returns or sets the collection of currency managers for the .
: Returns the collection of data-binding objects for this .
: Returns whether the has its own .
: Returns or sets the owner of this component.
Name | Description |
---|
Never
The data source is never updated and values entered into the control are not parsed, or re-formatted.
OnPropertyChanged
The data source is updated whenever the value of the control property changes.
OnValidation
The data source is updated when the control property is validated.
Returns or sets a value that indicates when changes to the bound control property are propagated to the data source.
Returns or sets a value that indicates when changes to the bound control property are propagated to the data source.
Returns or sets the default DataSourceUpdateMode for a Binding in the collection.
Creates a binding that binds the specified control property to the specified data member of the specified data source, optionally enabling formatting, propagating values to the data source based on the specified update setting, and adding the binding to the collection.
value
An Object that contains the value of the current property.
desiredType
The Type of the value.
Never
The bound control is never updated when a data source value changes.
OnPropertyChanged
The corresponding property of the bound control is updated when the data source value changes, or the data source position (current record) changes.
Returns or sets when changes to the data source are propagated to the bound control property.
Returns or sets when changes to the data source are propagated to the bound control property.
T
The Type of the data passed to the actions.
execute
canExecute
Defines a command that can be used for data binding.
component
The IBindableComponent the binding collection belongs to.
binding
The Binding to add.
propertyName
The name of the control property to bind.
dataSource
An Object that represents the data source.
dataMember
The property or list to bind to.
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false
formatString
One or more format specifier characters that indicate how a value is to be displayed.
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false
nullValue
formatString
One or more format specifier characters that indicate how a value is to be displayed.
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
updateMode
One of the DataSourceUpdateMode values.
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
updateMode
One of the DataSourceUpdateMode values.
nullValue
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
updateMode
One of the DataSourceUpdateMode values.
nullValue
formatString
One or more format specifier characters that indicate how a value is to be displayed.
propertyName
The name of the control property to bind.
dataSource
An Object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
updateMode
One of the DataSourceUpdateMode values.
nullValue
formatString
One or more format specifier characters that indicate how a value is to be displayed
formatInfo
An implementation of IFormatProvider to override default formatting behavior.
binding
The Binding to remove.
index
The zero-based index of the item to remove.
sender
The source of the event.
e
A ConvertEventArgs that contains the event data.
Fired when the control parses the text into the typed Value.
Fired when the value control formats the typed Value to display it to the user.
Fired when the property of a control is bound to a data value.
Fired when the value of a data-bound control changes.
dataMember |
Encapsulates the data source for a data-bound component. |
list | The data source to examine for its underlying list. |
dataSource | The data source from which to find the list. |
dataMember | The name of the data source property that contains the list. This can be null. |
list | The data source to examine for property information. |
list | The data source to be examined for property information. |
listAccessors |
dataSource | The data source to be examined for property information. |
dataMember | The optional data member to be examined for property information. This can be null. |
listAccessors |
list | The list to be examined for type information. |
dataSource | The data source to examine for items. |
dataMember | The optional name of the property on the data source that is to be used as the data member. This can be null. |
list | The data source to examine for the list name. |
listAccessors |
Represents a panel that dynamically lays out its contents in a grid composed of rows and columns. |
UI implementation for the FileDialog class. |
UI implementation for the FolderDialog class. |
Represents the navigation and manipulation user interface (UI) for controls that are bound to a data source. |
Represents a button control. |
Implements the basic functionality common to button controls. |
Represents a check box control. |
Represents a combo box control. |
Provides focus-management functionality for controls that can function as a container for other controls. |
Base class for all Wisej controls. |
Represents a control that allows the user to select or type a date and a time. |
Represents a spinner control that displays string values. |
Represents a panel that dynamically arranges its controls horizontally or vertically in automatic rows or columns. |
Represents a window or dialog box that makes up an application's user interface. |
Represents a Wisej control that displays a frame around a group of controls with an optional caption. |
Represents a label control. |
Represents an hyper-link control. |
Represents a control to display a list of items. |
Uses a mask to distinguish between proper and improper user input. |
Represents the container for multiple-document interface (MDI) child forms. |
Represents a control that enables the user to select a date using a visual monthly calendar display. |
Represents a spinner control that displays numeric values. |
Represents a web page that fills the browser and acts as the main container for the application. An application can have only one active main page at any given time. |
Represents a collapsible panel with an optional header that contains a group of controls. |
Represents an image control. |
Represents a progress control that displays a value visually as a filled bar. |
Defines a base class for controls that support auto-scrolling behavior. |
Represents an horizontal scroll bar. |
Represents a vertical scroll bar. |
Implements the basic functionality of a scroll bar control. |
Represents a control consisting of a movable bar that divides a container's display area into two resizable panels. |
Represents a text box control that allows the user to enter any value. |
Implements the basic functionality required by text controls. |
Enables the user to choose between a range of values by sliding a small bar along another bar. |
Implements the basic functionality required by a spin box (also known as an up-down control). |
Provides an empty control that can be used to create other controls. |
Represents a web browser control that enables the user to navigate web pages inside a form or a page. |
Represents a data grid control. |
Displays data in a customizable list format. |
Represents a desktop container that can host floating windows. |
Represents a control that can host ASP.NET or MVC pages within a Wisej application. |
Represents the HTML5 canvas element. |
Represents a panel that dynamically arranges its child controls. |
Represents a control that displays any HTML file and a corresponding CSS style sheet as embedded HTML. |
Represents a control that displays any HTML file in an IFrame element. |
Represents a line control. |
Base implementation for media controls. |
Represents a shape control. Displays an element a border in any of the four sides. |
Displays child controls vertically or horizontally in a scrollable container. |
Represents a spacer control. It can be used to add a space between controls in a layout panel. It is not rendered on the client. |
Represents a split button control. |
Represents a data field that displays a list of selectable and removable tags. The control recognizes tags as the user types and adds in front of the editable field. |
Represents a text box control that allows the user to enter a typed value. |
Represent an upload widget. Allows users to selected one or more files and upload them to the server. |
Provides an popup container that can be attached to other controls. |
Provides a generic widget that can use most third party javascript widgets. |
Represents a list view control, which displays a collection of items that can be displayed using one of four different views. |
Represents the base functionality for all menus. |
Represents a menu bar component. |
Provides a user interface for browsing the properties of an object. |
Displays information to the user in a about the object being viewed, the object's components, or the object's operation. |
Represents a toolbar component. |
Represents the method that will handle the event of the class.
The name of the column or list, within the data source, to obtain the for.
The array describing which properties of the data source to examine. This can be null.
The array describing which properties of the data member to examine. This can be null.
An array of objects to find in the data source. This can be null.
Displays a in which a check box is displayed to the left of each item.
Extends and enables the component to participated if data binding operations and have their own .
Provides a common implementation of members for the and classes.
Enables the user to select a single option from a group of choices when paired with other controls.
Creates a panel that is associated with a .
Manages a related set of pages.
Represents a single tab page in a .
Represents a control that can be hosted in a .
Represents a control that can be hosted in a .
Represents a control that can be hosted in a cell.
Represents a control that can be hosted in a .
Represents a control that can be hosted in a cell when the cell's is set to .
Used by the control to display data at run time.
Displays collapsible set of panels for presenting information in a limited amount of space.
Represents a panel in a control.
Represents a control that can display flash applications.
The TreeViewComboBox control represents a control with a as the drop down panel.
Represents a control that displays a video file.
Represents a control that plays an audio file.
Represents a control that can display a pdf document in the browser either using the native pdf viewer, the pdf.js viewer, Google docs, or a custom viewer.
Represents a spinner control that displays values.
The TreeViewComboBox control represents a control with a as the drop down panel.
The UserComboBox control represents a control with a custom panel that drops down when the user clicks the down arrow.
Represents an individual menu item that is displayed within a or and always shows a checkbox next to the label.
Represents a context menu associated to a .
Represents an individual menu item that is displayed within a or rendered using the <a> link element to let the browser process the specified URL.
Represents the main menu in a .
Represents an individual item that is displayed within a or .
Represents a panel in a control that can host any .
Represents a panel in a control.
Represents an item in the .
Displays a hierarchical collection of labeled items, each represented by a .