Classes | |
| class | DataModelBase |
| class | ErrorMessageDialog |
| class | ErrorMessageException |
| class | FormItemAttribute |
| class | FormItemGroupAttribute |
| interface | IDataModel |
| interface | IErrorHandler |
| class | ItemRowDesignatorAttribute |
| class | PropertyModel |
| class | RaisesChangeEventAttribute |
| class | ValueChangedEvent |
| class | ValueModel |
Enumerations | |
| enum | MessageClass |
Functions | |
| delegate void | ValueChangedHandler (object sender, ValueChangedEvent evt) |
The component model implements the wx.NET means of binding data sources to controls. This concept replaces either the standard .NET component model as well as wxWidget's validator concept.
The motivation of a component model simply is to specify the dynamic dependencies between widgets and the data model by a dependency graph that is generated once but will not change while the widget lives. wx.NET implements its own component model since the original implementation can hardly be used (unnecessary complex, errors, unpredictable behaviour) and the interface to the data model - the implemented program logic - makes heavy use of .NET's concepts for reflection.
The idea is, to specify a dependency network consisting of dependency nodes. Terminal nodes are either widgets or instances of data model classes. Both are linked via a third class of dependency nodes: Instances of wx.ComponentModel.DataModel. The arcs between these nodes are implemented by references and events: Each dependency node knows depending nodes and, this, propagates changes of values.
Programmers create complex dialogs building an appropriate dependency network first. Then, the leave nodes in this network will be asked for adequate controls using some predefined abstract constructors. These controls will be arranged using sizers. Done!
Refer also to Binding: Linking view layer and application layers
Classification of messages.
| delegate void wx.ComponentModel.ValueChangedHandler | ( | object | sender, | |
| ValueChangedEvent | evt | |||
| ) |
Handler of the ValueChangedEvent.
(c) 2003-2009 the wx.NET project