Intersoft ClientUI 8 > ClientUI Controls > Control Library > Content Controls Overview > ContentReflector > How-to: Create Reflection Effect using ContentReflector |
This example shows how to create reflection effect using ContentReflector.
The following code shows the reflection effect of the ContentReflector's content is configured using ReflectionPosition and ReflectionBrush.
XAML |
Copy Code
|
---|---|
<Intersoft:ContentReflector Height="300" HorizontalAlignment="Left" Name="contentReflector1" VerticalAlignment="Top" Width="250" ReflectionPosition="Bottom"> <Intersoft:ContentReflector.ReflectionBrush> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#80000000" Offset="1"/> <GradientStop Color="#00000000" Offset="0.4"/> </LinearGradientBrush> </Intersoft:ContentReflector.ReflectionBrush> <Image Source="/ClientUIApplication1;component/Images/Application_and_Software_1.jpg"></Image> </Intersoft:ContentReflector> |