The book is for C#2010 and .net 4.0 ,but the code i download from your website is target for .net 3.5.There are some inconveniences to convert the code from .net 3.5 to .net 4.0 in visual studio 2010.
The main code in this demo is following.
Code:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="ButtonResources.Window1"
x:Name="Window"
Title="ButtonResources"
Width="540" Height="320"
FontSize="16" FontWeight="Bold"
Background="LightBlue">
<Window.Resources>
<BitmapEffectGroup x:Key="bmeButton">
<DropShadowBitmapEffect/>
</BitmapEffectGroup>
</Window.Resources>
<StackPanel Margin="5">
<StackPanel Orientation="Horizontal"></StackPanel>
<Button Width="218" BitmapEffect="{StaticResource bmeButton}" Height="65"></Button>
</StackPanel>
</Window>
When I set the .NET target is .NET3.5, I can see its drop shadow effect ,but not in .NET4.0. Who can help me, please?