Intersoft ClientUI Documentation
ReflectionSource Property
See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace > ContentReflector Class : ReflectionSource Property






Gets or sets the image source used for the reflection. When specified, the control will use the given image source for the reflection instead of capturing the image from its content.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property ReflectionSource As ImageSource
Visual Basic (Usage)Copy Code
Dim instance As ContentReflector
Dim value As ImageSource
 
instance.ReflectionSource = value
 
value = instance.ReflectionSource
C# 
[CategoryAttribute("Common Properties")]
public ImageSource ReflectionSource {get; set;}
Delphi 
public read-write property ReflectionSource: ImageSource; 
JScript 
CategoryAttribute("Common Properties")
public function get,set ReflectionSource : ImageSource
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property ImageSource* get_ReflectionSource();
public: __property void set_ReflectionSource( 
   ImageSource* value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property ImageSource^ ReflectionSource {
   ImageSource^ get();
   void set (    ImageSource^ value);
}

Remarks

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>

 

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.