You can add an opacity effect to a reflection using the standard Silverlight drop shadow effect. In this topic, you will add the drop shadow effect in Blend, in XAML, and in code.
At Design Time in Blend
To use the opacity effect, complete the following steps:
At Design Time in Blend
To use the opacity effect, complete the following steps:
XAML Copy Code <c1ext:C1Reflector.ReflectionEffects> <c1ext:ReflectionOpacityEffect Coefficient="1" Offset="0.5"/> </c1ext:C1Reflector.ReflectionEffects>
In Code
To use the opacity effect, complete the following steps:
Visual Basic Copy Code Imports C1.Silverlight.Extended
C# Copy Codeusing C1.Silverlight.Extended;
Visual Basic Copy Code 'Create the ReflectionOpacityEffect object and set its properties Dim newOpacity As New ReflectionOpacityEffect() newOpacity.Coefficient = 1 newOpacity.Offset = 0.5 'Add the ReflectionOpacityEffect object to the C1Reflector1 control C1Reflector1.ReflectionEffects.Add(newOpacity)
C# Copy Code //Create the ReflectionOpacityEffect object and set its properties ReflectionOpacityEffect newOpacity = new ReflectionOpacityEffect(); newOpacity.Coefficient = 1; newOpacity.Offset = 0.5; //Add the ReflectionOpacityEffect object to the C1Reflector1 control C1Reflector1.ReflectionEffects.Add(newOpacity);
This Topic Illustrates the Following:
When you run the project, the C1Reflector control and its content will resemble the following image: