Prev | Current Page 186 | Next

Gurdy Leete and Mary Leete

"Microsoft Expression Blend Bible"

Then create a progress bar in the artboard by clicking and dragging
in the artboard.
3. Select the progress bar in the artboard, and click the Advanced Properties button beside
the Value property in the Common Properties palette. From the context menu choose
Data Binding.
The Create Data Binding dialog box appears, as shown in Figure 3.9.
CROSS-REF CROSS-REF
83
Designing a Next-Generation Interface 3
FIGURE 3.9
The Create Data Binding dialog box.
4. Click the Element Property tab, choose the slider in the list on the left, choose Value
in the list on the right, and then click Finish. The Create Data Binding dialog box
disappears.
5. To make the controls fit gracefully in their window, you can resize the window by selecting
Window in the Objects list and assigning it new Width and Height values in the
Layout palette.
6. Test your project by choosing Project ??? Test Project, or pressing F5. Be sure the window
is the startup window. If it is not, then choose Project ??? Set Startup ??? (your window
name), and then test the project. Your window appears, and when you drag the slider, the
progress bar moves accordingly, as shown in Figure 3.10.
FIGURE 3.10
The Value property of the slider is bound to the Value property of the progress bar.


Pages:
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198