CompositeTransform simplifies transforms in Silverlight 4 Beta
One of the features you may have missed that was added to the Silverlight 4 beta is the new CompositeTransform class. The new class provides a simpler way to transform an element, by simply offering a single object to instantiate rather than a group of transforms made for specific transforms. To animate properties, you will no longer need to name multiple Transforms or access them by index (hoping they were added in the expected order).
Not only is the code easier to write and less characters, but property access is clearer. To rotate an object you change the Rotation property rather than the RotationTransform.Angle property. I think the simplicity of property access is demonstrated best by the C# example below.
XAML example
C# example

You will notice that the new Expression Blend for .NET 4 Preview still defaults to the verbose TransformGroup, but it will render the CompositeTransform without complaints.
For more information on the Silverlight 4 Beta, check out the Technical Feature Overview for Silverlight 4.




[...] CompositeTransform simplifies transforms in Silverlight 4 Beta (Adam Kinney) [...]
Dew Drop – November 23, 2009 | Alvin Ashcraft's Morning Dew
November 23, 2009 at 6:09 am
Social comments and analytics for this post…
This post was mentioned on Twitter by adkinn: CompositeTransform simplifies transforms in Silverlight 4 Beta http://ff.im/-bRZ7f...
uberVU - social comments
November 23, 2009 at 6:12 am
[...] мотивам CompositeTransform simplifies transforms in Silverlight 4 Beta [en] Tags: Комментарии (0) Уведомления (0) Написать [...]
Блог Сергея Пугачёва » Использование CompositeTransform в Silverlight 4
December 3, 2009 at 8:47 am
Yeah this is great feature. Glad you pointed it out for every one. Definitely makes a lot of scenarios easier and less error prone.
Grant Hinkson
December 4, 2009 at 3:40 pm