views:

225

answers:

1

Notice in the image below the 1px highlight below the text in the grey panel. How could this be achieved with WPF/Silverlight?

Valid XHTML.

+6  A: 

In Silverlight 3, it is called a DropShadow effect.

Eg.

  <Border Height="300" Width="300" Background="Gray">
        <Border.Effect>
            <DropShadowEffect Opacity="0.34" ShadowDepth="9" Direction="542" BlurRadius="9"/>
        </Border.Effect>
  </Border>
DVark
I am talking about the text. The 1 pixel white line under the text.
Burt
The effect can still be achieved with the drop shadow, thanks.
Burt