StockTraderRI Drop Shadow Effect

Topics: Prism v4 - Silverlight 4
Feb 5, 2011 at 5:54 PM

I would like to know how/where the drop shadow effect is implemented in Silverlight StockTrader Reference Implementation.

In my project, I have a grid with white background and opacity of 60% similar to the StockTrader RI, but if I add a drop shadow effect the grid turns dark grey.

I would like to know how StockTrader RI implemented a drop shadow around a container with a white background and around 60% opacity without causing it to go grey.

Thanks!

Feb 7, 2011 at 5:19 PM

Hi,

You might check the Controls folder in the StockTrader.RI project. There you will find the RoundBox.xaml. Also, this xaml is using the png files from the Resources folder.

This is the control used in the Shell to define the region with the shadow effect you are looking.

Additionally, you can read this article on how to use Bitmap Effect on WPF

I hope you find this information useful.

Thanks,

Miguel Bronzovic
http://blogs.southworks.net/mbronzovic