CongoFX

Hello everyone,

can somebody tell me how to animate the GlowSize propertie of a OuterGlowBitmapEffect, likes a DoubleAnimation perhaps, by code (not by XAML)

Thank you very much for your help!



Re: Windows Presentation Foundation (WPF) How to animate OuterGlowBitmapEffect by code

CongoFX

Ií»ve solved it by reading this description at:

http://msdn2.microsoft.com/en-us/library/ms598901.aspx





Re: Windows Presentation Foundation (WPF) How to animate OuterGlowBitmapEffect by code

A2324_1

Here you go..found it on net..Executes when textbox gets focus.

<Style TargetType="{x:Type TextBox}">
<Style.Triggers>
<Trigger Property="IsFocused" Value="True">
<Setter Property = "BitmapEffect" >
<Setter.Value>
<OuterGlowBitmapEffect GlowColor="Yellow" GlowSize="30" Noise="1"
Opacity="0.4" />
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>





Re: Windows Presentation Foundation (WPF) How to animate OuterGlowBitmapEffect by code

CongoFX

Hello A2324_1,

thank you very much for your post. But I know the XAML solution already, what I wanted was the solution by code.

But see my post before, Ií»ve solved it already...