Intersoft.Client.UI.Controls Namespace > ContentReflector Class : ReflectionSource Property |
<CategoryAttribute("Common Properties")> Public Property ReflectionSource As ImageSource
Dim instance As ContentReflector 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, ContentReflector generates the reflection image based on the specified content. You can use any data types as the content to be reflected by the ContentReflector. 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 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 ContentReflector 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:ContentReflector Height="200" Width="100" Margin="4" ReflectionSource="/Hydrangeas.jpg"> <Grid> <Image Source="/Hydrangeas.jpg" Stretch="Fill"/> </Grid> </Intersoft:ContentReflector> |
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