Glowing Effect with OuterGlowBitmapEffect : BitmapEffect « Windows Presentation Foundation « C# / C Sharp






Glowing Effect with OuterGlowBitmapEffect

Glowing Effect with OuterGlowBitmapEffect
 

<Window x:Class="BitmapEffectsExample"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="Bitmap Effects" Height="500" Width="400">
    <StackPanel Margin="5,20,5,5" Grid.Column="0" Grid.Row="1">
      <Button Content="A Growing Button" Width="150" Height="30" Margin="10">
        <Button.BitmapEffect>
          <OuterGlowBitmapEffect GlowColor="Gray"
            GlowSize="15" Noise="1" />
        </Button.BitmapEffect>
      </Button>
      <TextBlock Text="Growing" FontSize="40" FontWeight="Bold"
        Foreground="White" Margin="5">
        <TextBlock.BitmapEffect>
          <OuterGlowBitmapEffect GlowColor="Gray"
            GlowSize="10" Noise="0.5" />
        </TextBlock.BitmapEffect>
      </TextBlock>
    </StackPanel>

</Window>

   
  








Related examples in the same category

1.A Beveled Button and TextBlock with BevelBitmapEffectA Beveled Button and TextBlock with BevelBitmapEffect
2.Shadow Effect and DropShadowBitmapEffectShadow Effect and DropShadowBitmapEffect
3.Embossed Effect with EmbossBitmapEffectEmbossed Effect with EmbossBitmapEffect
4.Blur Effect with BlurBitmapEffectBlur Effect with BlurBitmapEffect
5.Create a shadow effect for displayed text.Create a shadow effect for displayed text.
6.Hard single shadowHard single shadow
7.Hard shadow on top of soft shadowHard shadow on top of soft shadow
8.Hard shadow on top of noisy shadowHard shadow on top of noisy shadow
9.Shadow effect by creating an outer glowShadow effect by creating an outer glow