<?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>My Silverlight Blog : drop shadow</title><link>http://blogs.msdn.com/timrule/archive/tags/drop+shadow/default.aspx</link><description>Tags: drop shadow</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>InnerGlow Effect For Silverlight 2 Beta 2</title><link>http://blogs.msdn.com/timrule/archive/2008/04/29/innerglow-effect-for-silverlight-2-beta-1.aspx</link><pubDate>Wed, 30 Apr 2008 08:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8441426</guid><dc:creator>Tim Rule</dc:creator><slash:comments>12</slash:comments><comments>http://blogs.msdn.com/timrule/comments/8441426.aspx</comments><wfw:commentRss>http://blogs.msdn.com/timrule/commentrss.aspx?PostID=8441426</wfw:commentRss><description>&lt;P&gt;I have taken the project from the previous post and extended the effect class to support an Inner Glow. &lt;/P&gt;&lt;IFRAME style="WIDTH: 500px; HEIGHT: 200px" src="http://silverlight.services.live.com/invoke/63894/InnerGlow%20Demo/iframe.html" frameBorder=0 scrolling=no mce_src="http://silverlight.services.live.com/invoke/63894/InnerGlow%20Demo/iframe.html"&gt;&lt;/IFRAME&gt;
&lt;P&gt;The basic difference between the composition of the Inner Glow and the previous effects is that the gradients are reversed and the z index is changed to bring the gradient grid to the foreground.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The Inner Glow uses as Clip mask to conform the glow to the Content shape as shown below.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/timrule/WindowsLiveWriter/InnerGlowEffectForSilverlight2Beta1_138F2/Rect.png" mce_href="http://blogs.msdn.com/blogfiles/timrule/WindowsLiveWriter/InnerGlowEffectForSilverlight2Beta1_138F2/Rect.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" border=0 alt=Rect src="http://blogs.msdn.com/blogfiles/timrule/WindowsLiveWriter/InnerGlowEffectForSilverlight2Beta1_138F2/Rect_thumb.png" width=515 height=114 mce_src="http://blogs.msdn.com/blogfiles/timrule/WindowsLiveWriter/InnerGlowEffectForSilverlight2Beta1_138F2/Rect_thumb.png"&gt;&lt;/A&gt; &lt;BR&gt;&lt;/P&gt;
&lt;P&gt;This effect could use some refinement. Ideally this effect control would support effects such as Inner Glow and Drop Shadow simultaneously.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8441426" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/timrule/attachment/8441426.ashx" length="9863" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/timrule/archive/tags/filters/default.aspx">filters</category><category domain="http://blogs.msdn.com/timrule/archive/tags/effects/default.aspx">effects</category><category domain="http://blogs.msdn.com/timrule/archive/tags/silverlight/default.aspx">silverlight</category><category domain="http://blogs.msdn.com/timrule/archive/tags/glow/default.aspx">glow</category><category domain="http://blogs.msdn.com/timrule/archive/tags/silverlight+2+beta+1/default.aspx">silverlight 2 beta 1</category><category domain="http://blogs.msdn.com/timrule/archive/tags/inner+glow/default.aspx">inner glow</category><category domain="http://blogs.msdn.com/timrule/archive/tags/drop+shadow/default.aspx">drop shadow</category></item><item><title>Drop Shadow Effect for Silverlight 2 Beta 2</title><link>http://blogs.msdn.com/timrule/archive/2008/04/21/shadow-effect.aspx</link><pubDate>Tue, 22 Apr 2008 00:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8415433</guid><dc:creator>Tim Rule</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/timrule/comments/8415433.aspx</comments><wfw:commentRss>http://blogs.msdn.com/timrule/commentrss.aspx?PostID=8415433</wfw:commentRss><description>&lt;P&gt;A configurable shadow effect can be achieved for Silverlight 2 Beta 1 with the use of the Grid control and gradient fills. This will work for rectangular and rounded rectangular&amp;nbsp;content. The code is built off of the previous glow effect post.&lt;/P&gt;&lt;IFRAME style="WIDTH: 500px; HEIGHT: 200px" src="http://silverlight.services.live.com/invoke/63894/Shadow%20Demo/iframe.html" frameBorder=0 scrolling=no mce_src="http://silverlight.services.live.com/invoke/63894/Shadow%20Demo/iframe.html"&gt;&lt;/IFRAME&gt;
&lt;P&gt;The ShadowBox like thee GlowBox control is composed of a Canvas containing a Grid which is used to build the glow and a ContentPresenter. 
&lt;P&gt;&lt;IMG src="http://blogs.msdn.com/photos/tim_rule/images/8406792/original.aspx" mce_src="http://blogs.msdn.com/photos/tim_rule/images/8406792/original.aspx"&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The grid contains 8 rectangles&amp;nbsp;with linear or radial gradients. The gradient stop is adjusted to achieve varying degrees of rounding. The shadow is then offset via a Distance and Angle property.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the glow the gradients radiate from a base shape equal to that of the content. With the shadow the size of the base shape decreases as the spread increases to simulate the effect of a softer light. &lt;/P&gt;
&lt;P&gt;The&amp;nbsp;lastest code for this effect can be found in the&amp;nbsp;&lt;A href="http://blogs.msdn.com/timrule/archive/2008/04/29/innerglow-effect-for-silverlight-2-beta-1.aspx" mce_href="http://blogs.msdn.com/timrule/archive/2008/04/29/innerglow-effect-for-silverlight-2-beta-1.aspx"&gt;InnerGlow Post&lt;/A&gt;.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8415433" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/timrule/archive/tags/filters/default.aspx">filters</category><category domain="http://blogs.msdn.com/timrule/archive/tags/effects/default.aspx">effects</category><category domain="http://blogs.msdn.com/timrule/archive/tags/silverlight/default.aspx">silverlight</category><category domain="http://blogs.msdn.com/timrule/archive/tags/glow/default.aspx">glow</category><category domain="http://blogs.msdn.com/timrule/archive/tags/silverlight+2+beta+1/default.aspx">silverlight 2 beta 1</category><category domain="http://blogs.msdn.com/timrule/archive/tags/drop+shadow/default.aspx">drop shadow</category></item></channel></rss>