Intersoft.Client.UI.Controls Namespace > ContentPerspective Class : ReflectionSource Property |
<CategoryAttribute("Common Properties")> Public Property ReflectionSource As ImageSource
Dim instance As ContentPerspective Dim value As ImageSource instance.ReflectionSource = value value = instance.ReflectionSource
[CategoryAttribute("Common Properties")] public ImageSource ReflectionSource {get; set;}
[CategoryAttribute("Common Properties")] public: property ImageSource^ ReflectionSource { ImageSource^ get(); void set ( ImageSource^ value); }
By default, ContentPerspective generates the reflection image based on the specified content. You can use any data types as the content to be reflected by the ContentPerspective. However, if you’re using an Image as its content, it is recommended to use ReflectionSource to improve the performance. By providing ReflectionSource, the control will use the provided image instead of automatically generating the reflection image.
If you are using non-image content type and having performance issue, you may want to set the AutoRefresh property to false. When set to true, this property enables ContentPerspective to re-generate the reflection image whenever the content layout is updated, for instance, due to changes in the content such as text input, resizing, and visual states change.
The following example shows how to use ReflectionSource to improve the performance by skipping the reflection process.
XAML |
Copy Code
|
---|---|
<Intersoft:ContentPerspective Height="192" Width="256" ReflectionSource="/Penguins.jpg" RotationY="-45"> <Image Source="/Penguins.jpg"/> </Intersoft:ContentPerspective> |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2