Change OuterGlowBitmapEffect for a Button : BitmapEffect « Windows Presentation Foundation « VB.Net






Change OuterGlowBitmapEffect for a Button

Change OuterGlowBitmapEffect for a Button
     

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="" Height="120" Width="240">

    <Window.Resources>
        <Style TargetType="{x:Type Button}">
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="BitmapEffect">
                        <Setter.Value>
                            <OuterGlowBitmapEffect GlowColor="Orange" GlowSize="5"/>
                        </Setter.Value>
                    </Setter>
                </Trigger>

            </Style.Triggers>
        </Style>

    </Window.Resources>

    <StackPanel Margin="8">
        <Button Height="25" Width="100" Margin="4">
            Mouse Over Me!
        </Button>
    </StackPanel>

</Window>

   
    
    
    
    
  








Related examples in the same category

1.Beveled Text with BevelBitmapEffectBeveled Text with BevelBitmapEffect
2.Embossed Text with EmbossBitmapEffectEmbossed Text with EmbossBitmapEffect
3.Image with EmbossBitmapEffectImage with EmbossBitmapEffect
4.Image with EmbossBitmapEffect and Relief = 0.5Image with EmbossBitmapEffect and Relief = 0.5
5.A Shadowed Button with DropShadowBitmapEffectA Shadowed Button with DropShadowBitmapEffect
6.Shadowed Text with DropShadowBitmapEffectShadowed Text with DropShadowBitmapEffect
7.Distant ShadowDistant Shadow
8.Small Glow and OuterGlowBitmapEffectSmall Glow and OuterGlowBitmapEffect
9.Grainy Glow and OuterGlowBitmapEffect, GlowSize, NoiseGrainy Glow and OuterGlowBitmapEffect, GlowSize, Noise
10.Glowing Text and OuterGlowBitmapEffectGlowing Text and OuterGlowBitmapEffect
11.Grainy Glow and OuterGlowBitmapEffectGrainy Glow and OuterGlowBitmapEffect
12.A Blurred Button with BlurBitmapEffectA Blurred Button with BlurBitmapEffect
13.A Really Blurred Button by setting the Radius of BlurBitmapEffectA Really Blurred Button by setting the Radius of BlurBitmapEffect
14.A Beveled Button with BevelBitmapEffectA Beveled Button with BevelBitmapEffect
15.Gaussian KernelType BlurBitmapEffectGaussian KernelType BlurBitmapEffect
16.Set Radius for BlurBitmapEffectSet Radius for BlurBitmapEffect
17.OuterGlowBitmapEffect for a ButtonOuterGlowBitmapEffect for a Button
18.OuterGlowBitmapEffect with Black GlowColor and 1 GlowSizeOuterGlowBitmapEffect with Black GlowColor and 1 GlowSize
19.BevelBitmapEffect EdgeProfile=BulgedUpBevelBitmapEffect EdgeProfile=BulgedUp