Binding in c#

Jan 26, 2011 at 8:05 PM

I want to change the effect of an image on the fly, but i need to be able to bind the properties of an effect in c# any ideas how to do the following in c#:

                    <shaders:ColorSharpFilter x:Name="CameraFilter"
                                             MinLvl="{Binding ElementName=CameraControlControl, Path=MinimumColor}"
                                             MaxLvl="{Binding ElementName=CameraControlControl, Path=MaximumColor}"
                                             NewColor="{Binding ElementName=CameraControlControl, Path=NewColor}"
                                             Inclusive="1" Amount="10.0" Width="0.0001"/>