<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Stefan Wick's Weblog - Development with Silverlight, WPF and Tablet PC : Silverlight 3</title><link>http://blogs.msdn.com/swick/archive/tags/Silverlight+3/default.aspx</link><description>Tags: Silverlight 3</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Silverlight 3 Beta: Perspective 3D</title><link>http://blogs.msdn.com/swick/archive/2009/03/18/silverlight-3-beta-perspective-3d.aspx</link><pubDate>Wed, 18 Mar 2009 10:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9486206</guid><dc:creator>swick</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/swick/comments/9486206.aspx</comments><wfw:commentRss>http://blogs.msdn.com/swick/commentrss.aspx?PostID=9486206</wfw:commentRss><description>&lt;p&gt;Silverlight 3 Beta has been&amp;nbsp;released today. This release includes a number of exciting new features that I want to illustrate with a series of quick samples on my blog. (&lt;a href="http://silverlight.net/getstarted/silverlight3/default.aspx" mce_href="http://silverlight.net/getstarted/silverlight3/default.aspx"&gt;more info on Silverlight 3 Beta and how to get the bits and tools&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The first new feature I want to show is Perspective 3D transformation. We have added a powerful new property 'Projection' to UIElement that lets you rotate and move any element in your&amp;nbsp;tree in 3D space! The usage is very simple, no complicated math required - just set the Projection property to a PlaneProjection&amp;nbsp;in XAML or code and specify how you want to rotate or move your elements. You can then change these properties dynamically at runtime, either through code or animations.&lt;/p&gt;

&lt;p style="margin: 0in 0in 0pt; line-height: normal;" class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: rgb(163, 21, 21); font-size: 8pt;"&gt;Grid&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt; &amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin: 0in 0in 0pt; line-height: normal;" class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New'; color: rgb(163, 21, 21); font-size: 8pt;"&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: rgb(163, 21, 21); font-size: 8pt;"&gt;Grid.Projection&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin: 0in 0in 0pt; line-height: normal;" class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New'; color: rgb(163, 21, 21); font-size: 8pt;"&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: rgb(163, 21, 21); font-size: 8pt;"&gt;PlaneProjection&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: red; font-size: 8pt;"&gt; RotationX&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;="20"&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: red; font-size: 8pt;"&gt; RotationY&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;="30"&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: red; font-size: 8pt;"&gt; RotationZ&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;="-10"/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin: 0in 0in 0pt; line-height: normal;" class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New'; color: rgb(163, 21, 21); font-size: 8pt;"&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: rgb(163, 21, 21); font-size: 8pt;"&gt;Grid.Projection&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin: 0in 0in 0pt; line-height: normal;" class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: rgb(163, 21, 21); font-size: 8pt;"&gt;Grid&lt;/span&gt;&lt;span style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;(&lt;a href="http://msdn.microsoft.com/en-us/library/dd470131%28VS.96%29.aspx" mce_href="http://msdn.microsoft.com/en-us/library/dd470131(VS.96).aspx"&gt;More info on Perspective 3D in Silverlight 3 Beta&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Below is a live example of this new feature in action. The source is attached to this post. Note that&amp;nbsp;you need the Silverlight 3 Beta Tools for VS in order to build the project. To view the live sample on this page you just need the &lt;a href="http://go.microsoft.com/fwlink/?linkid=143433" mce_href="http://go.microsoft.com/fwlink/?linkid=143433"&gt;Silverlight 3 Beta runtime&lt;/a&gt; installed. In the sample I have two surfaces back-to-back to each other, simulating a postcard in 3D space. Use the sliders to rotate the postcard around x, y or z axis. To demonstrate that the projected visuals are actually live and also take input, I have ink-enabled then, so you can draw on either side of the postcard.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;The below sample has been update for the Silverlight 3&amp;nbsp;RTW Runtime (&lt;a href="http://www.microsoft.com/silverlight/get-started/install/default.aspx" mce_href="http://www.microsoft.com/silverlight/get-started/install/default.aspx"&gt;download&lt;/a&gt;&lt;/b&gt;&lt;b&gt;)&lt;/b&gt;&lt;/p&gt;
&lt;iframe src="http://silverlight.services.live.com/invoke/34348/InkPostcard_rtw/iframe.html" style="width: 550px; height: 450px;" mce_src="http://silverlight.services.live.com/invoke/34348/InkPostcard_rtw/iframe.html" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;
&lt;p mce_keep="true"&gt;&amp;nbsp;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9486206" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/swick/attachment/9486206.ashx" length="181136" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/swick/archive/tags/Silverlight+Ink/default.aspx">Silverlight Ink</category><category domain="http://blogs.msdn.com/swick/archive/tags/Silverlight/default.aspx">Silverlight</category><category domain="http://blogs.msdn.com/swick/archive/tags/InkPresenter/default.aspx">InkPresenter</category><category domain="http://blogs.msdn.com/swick/archive/tags/Silverlight+Samples/default.aspx">Silverlight Samples</category><category domain="http://blogs.msdn.com/swick/archive/tags/Perspective+3D/default.aspx">Perspective 3D</category><category domain="http://blogs.msdn.com/swick/archive/tags/Silverlight+3/default.aspx">Silverlight 3</category></item></channel></rss>