December 9, 2010
Above is a test of rotating and scaling objects.
This is the Smalltalk code:
| w | w := WorkspaceWindow open. w x: 50 y: 300; scale: 2. 0 to: 359 by: 45 do:[:x | w := TestWindow open green.w x: 550 y: 300; rotate: x]
The rotated windows are fully functional as is the WorkspaceWindow which is scaled to twice the normal size.
Note that everything is rotated or scaled including controls like TextBoxes; also the font size for text is scaled along with the control.
This is possible because the Silverlight rendering engine is based on a scalable vector graphics model (Microsoft’s version). So *any* visible object can be scaled, rotated, or skewed – or any combination thereof.
Also, almost any visible effect can be animated and animations can be grouped together using a “Storyboard”. So you can set up a complete animation sequence in a Storyboard and just tell the animation to start when you are ready. The animation is handled entirely in the Silverlight engine – Silver Smalltalk just has to set it up.
I will be adding animations to the package probably next week; control layouts and network communications will be added first.