| US 7,555,707 B1 | ||
| Method and system for data binding in a block structured user interface scripting language | ||
| Matthew Labarge, Seattle, Wash. (US); Igor Zaika, Kirkland, Wash. (US); and William John Blewett, Redmond, Wash. (US) | ||
| Assigned to Microsoft Corporation, Redmond, Wash. (US) | ||
| Filed on Mar. 12, 2004, as Appl. No. 10/800,056. | ||
| Int. Cl. G06F 17/00 (2006.01); G06F 17/24 (2006.01) | ||
| U.S. Cl. 715—234 [715/239; 715/255; 715/271; 715/272; 715/273] | 25 Claims |

| 1. A computer-implemented method for binding data in a user interface (UI) script, comprising:
generating a tree structure that corresponds to the UI script;
automatically determining whether the tree structure includes cloned templates that were previously grafted to the tree structure
and automatically removing any cloned templates that were previously grafted to the tree such that templates that already
include data from an external data source are removed from the tree, wherein the tree structure is in a state where data binding
has yet to occur and the cloned templates are removed before cloning a reference template;
accessing the reference template;
cloning the reference template to create a cloned reference template while maintaining the reference template such that the
reference template is available for subsequent iterations of binding data;
inserting the data into the cloned reference template;
grafting the cloned reference template into the tree structure after the data has been inserted into the cloned reference
template; and
displaying a UI output according to the tree structure, whereby the UI output is dynamically updated with the data.
|