Mega Code Archive

 
Categories / C# / WPF
 

Hard shadow on top of noisy shadow

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   x:Class="SDKSample.Window1" Title="Text Shadow Samples"   Background="FloralWhite">   <StackPanel>       <TextBlock FontSize="64"         Text="asdf"         Foreground="Silver"         Grid.Column="1" Grid.Row="3">         <TextBlock.BitmapEffect>           <BitmapEffectGroup>             <DropShadowBitmapEffect               ShadowDepth="3"               Direction="330"               Color="Black"               Opacity="0.75"               Softness="0.0" />             <DropShadowBitmapEffect               Noise="0.75"               ShadowDepth="6"               Direction="330"               Color="Black"               Opacity="0.35"               Softness="0.25" />           </BitmapEffectGroup>         </TextBlock.BitmapEffect>       </TextBlock>   </StackPanel> </Window>