Mega Code Archive

 
Categories / VB.Net / WPF
 

Shadowed Text with DropShadowBitmapEffect

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     x:Class="Microsoft.Samples.Graphics.RectangleExample"     WindowTitle="Example">   <Canvas>     <TextBlock Margin="3" FontSize="40" FontWeight="Bold" Foreground="White">       <TextBlock.Text>Shadowed Text</TextBlock.Text>       <TextBlock.BitmapEffect>         <DropShadowBitmapEffect></DropShadowBitmapEffect>       </TextBlock.BitmapEffect>     </TextBlock>   </Canvas> </Page>