Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Path with OuterGlowBitmapEffect

<Window x: Class="WpfApplication1.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="WPF" Height="230" Width="500">     <Canvas Margin="10">         <Canvas.Resources>             <GeometryGroup x:Key="Clown" FillRule="Nonzero">                 <RectangleGeometry Rect="30,120 20,10"/>             </GeometryGroup>         </Canvas.Resources>         <Path Canvas.Left="170" Canvas.Top="10" Data="{StaticResource Clown}"               Stroke="Black" StrokeThickness="4" Fill="Wheat">             <Path.BitmapEffect>                 <OuterGlowBitmapEffect GlowColor="Green" GlowSize="30" />                             </Path.BitmapEffect>         </Path>     </Canvas> </Window>