Skip Navigation LinksHome / Search


Results Per Page

Found 4 results for DropShadow.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Silverlight Show  on  Feb 12, 2010 (4 months ago)
    In this article Nokola concenrates on Hue Shift in Pixel Shader 2.0. In a previous post of his, Nokola has published the EasyPainter source code pack as well as a live demo.

    I read somewhere online that Hue changes can't be done in pixel shader 2.0, due to limitation of 64 instructions per slot. Here's the sample that proves otherwise.

  • 0 comments  /  posted by  Silverlight Show  on  Jul 20, 2009 (10 months ago)

    Chris Klug explains about the process of finding an unwanted interaction between transparency and effects such as drop shadow.

    I had this application that I had built for Microsoft while Silverlight 3 was still in beta. And then when SL  3 went RTW, a feature stopped working. Or as I found out, stopped working partly. After a bit of fiddling, I found a way around it, but it is still annoying. This is the story of finding my first Silverlight 3 RTW issue…

    In the application I was using a grid, and an ellipse. The ellipse used a negative margin for different reasons. Basically, the ellipse was an transparent area, that was responsible for handling mouse over and mouse out events.

  • 5 comments  /  posted by  Nikolay Raychev  on  Apr 02, 2009 (more than a year ago)
    Silverlight 3 comes with two built in Pixel Shaders:

    We have the following image:

    We want to blur it:

    <Image Width="300"   
            <BlurEffect Radius="8"></BlurEffect>

    We have the following result:

    Note the Radius parameter. The bigger the radius is, the more blurred the picture is.

    Now let's make a shadowed picture:

    <Image Width="300"   
            <DropShadowEffect BlurRadius="30" Color="Gray"
                Direction="-45" Opacity="0.5" ShadowDepth="20">

    The result:


    The DropShadow effect has several parameters:
    • BlurRadius - the bigger the radius is, the more blurred the shadow is.
    • Color - the shadow color.
    • Direction - an angle specifying the direction of the shadow. If you set it to zero the shadow will fall on the right side.
    • Opacity - the shadow opacity.
    • ShadowDepth - it specifies how far (deep) from the picture the shadow will appear.

    You can define your own Pixel Shaders using a special language called HLSL. But this is beyond the scope of this tip.

  • 0 comments  /  posted by  Silverlight Show  on  Mar 31, 2009 (more than a year ago)
    Page Brooks will show you how with Silverlight 3 you can easily achieve a drop shadow effect on your text.

    Before Silverlight 3, you had to do perform some less-than-ideal tricks to achieve a drop shadow effect on your text.  In fact, the most decent trick I could find had to rely on the TextBox control and not the TextBlock control since you cannot re-template a TextBlock control.  But even that technique was not optimal since you couldn’t get a truly smooth shadow.

Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)