July 2015
Intermediate to advanced
1300 pages
87h 27m
English
TranslateTransform enables you to move 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:
<ListBox Name="TranslateListBox" Grid.Row="1" Grid.Column="1" Style="{StaticResource ListStyle}"> <ListBox.RenderTransform> <TranslateTransform X="50" Y="100" /> </ListBox.RenderTransform></ListBox>
The result of this translation is shown in Figure 30.12 (see the bottom-right cell).
Read now
Unlock full access