Concept : Understanding Control Bindings

Page Status: Beta

Back to Concepts and HOW TOs

Contents

[edit] Description

Controls (View elements, such as buttons, edit boxes, checkboxes, etc.) are added to forms to provide interactivity and feedback between the application and the user.

You can attach a control (a View element) to an object or a member of an object (in the Model) using either automatic or manual binding:

  • Automatic Binding: The easiest way to attach a control to an object is through automatic binding. You first select a field or function of the class (accessed in the Solution Explorer or Solution Detail). After you select the object, the Toolbox will automatically change the content of the Selection category to controls that are appropriate for what you selected in the Solution Explorer. You can then drag a control from the Selection category of the Toolbox onto the form. When you drag the control from the Selection category in the toolbox, the control is automatically bound to the selected class member and a control adapter is established between the model and the view.
  • Manual Binding: To manually bind a control the model, drag a control from one of the Toolbox categories (other than Selection) with bindable controls to the form (currently, only controls found in the Containers category are not bindable). This procedure allows you to bind the control yourself.

[edit] See Also

Controls Reference
Binding a Control to an Object
Understanding Forms

[edit] Tags

    Copyright © 2005 - 2007 Bungee Labs. All rights reserved.