| US 7,475,384 B2 | ||
| Binding to types | ||
| Iain C Heath, Redmond, Wash. (US); Joseph P Stegman, Newcastle, Wash. (US); Mark A Boulter, Issaquah, Wash. (US); and Steven M Lasker, Sammamish, Wash. (US) | ||
| Assigned to Microsoft Corporation, Redmond, Wash. (US) | ||
| Filed on Oct. 19, 2004, as Appl. No. 10/968,207. | ||
| Prior Publication US 2006/0150172 A1, Jul. 06, 2006 | ||
| Int. Cl. G06F 9/44 (2006.01) | ||
| U.S. Cl. 717—114 [717/116] | 18 Claims |

| 1. A computer-implemented system for data binding to a type of an object in a run-time environment, the system comprising:
a processor coupled to a memory;
a control having an associated visual representation;
a binding source component binding the control and the type of the object rather than an instance of the object, the binding
source component comprising:
abstracting a schema associated with the type of the object;
determining whether the object of the bounded type can be instantiated;
if the object cannot be instantiated:
interrogating a public properties of the type of the object using reflection to ascertain bindable properties, and
creating an internal list of the bindable properties;
instantiating the object;
providing information associated with the bindable properties to the control upon the instantiation, the information including
the bindable properties of the object that conform with at least a portion of the abstract schema;
determining whether the control has updated the internal list;
updating the binding to an underlying data source, if the control has updated the internal list; and
exchanging the bound object with a subsequent object of the same type, the subsequent object including bindable properties
that also conform with at least a portion of the abstract schema.
|