TranslateTransform


TranslateTransformHierarchy: DependencyObject Freezable Animatable Transform

         <TranslateTransform             X="5"             Y="5" /> 

<TranslateTransform .../> defines an axis-aligned transition in the x- and y-directions. It moves an element the specified number of 1/96" units in the x- and y-direction. Example 11-6 shows the original Rectangle and then the same Rectangle translated along the x- and y-axis. Figure 11-4 shows the result of evaluating the code in XamlPad.

Figure 11-4. TranslateTransform applied to a Rectangle


Attributes


X (optional)

This Double value determines the distance along the x-axis to move the element.


Y (optional)

This Double value determines the distance along the y-axis to move the element.




XAML in a Nutshell
XAML in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596526733
EAN: 2147483647
Year: 2007
Pages: 217

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net