Passing Parameters to an Effect
Effect parameters can be defined by properties, enabling the effect to be reused. Parameters can then be passed to the effect by specifying values for each property when instantiating the effect.
Passing Effect Parameters as Common Language Runtime Properties
Common Language Runtime (CLR) properties can be used to define effect parameters that don't respond to runtime property changes. This article demonstrates using CLR properties to pass parameters to an effect.
Passing Effect Parameters as Attached Properties
Attached properties can be used to define effect parameters that respond to runtime property changes. This article demonstrates using attached properties to pass parameters to an effect, and changing a parameter at runtime.