Applying TranslateTransform

TranslateTransform simply enables moving a visual element from a position to another one in the layout system. This is useful if you want to build animations capable of moving visual elements. The following example shows how you can translate a ListBox of 50 points on the X-axis and of 100 points on the Y-axis:

image

The result of this translation is shown in Figure 33.12 (see the bottom-right cell).

Figure 33.12 The result of applying transformations.

image

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.