I finally figured it out.
Here is what you need to do:
in the .xaml file add a Resource code to an object, in my case I used StackPanel:
<stackpanel.resources>
<storyboard x:name="MyStoryboard" x:key="myEffect" xmlns:x="#unknown">
<doubleanimation storyboard.targetproperty="clEffects.Left" storyboard.targetname="sbEffect">
/>
</doubleanimation></storyboard>
</stackpanel.resources>
add custom effect to the button in .xaml file:
<Button.Effect>
<local:cleffects x:name="myclEffects" xmlns:x="#unknown" xmlns:local="#unknown" />
</Button.Effect>
modify .xaml.vb code to this:
'This code can be placed in a button event or any other events.
Dim da as New DoubleAnimation()
Storyboard.SetTarget(da, myButton1)
da.From = 0
da.[To] = 0.5
da.Duration = (TimeSpan.FromSeconds(2))
myclEffects.BeginAnimation(clEffects.clEffects.LeftProperty, da)
'clEffects is a custom HLSL Shader effect.
I have not experimented alot with this yet, so I don't know what the draw backs are. But for now this solved my issue.
Hope someone will find a use for this too.