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






Gets or sets a value that determine the position of the reflection.

Syntax

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

Remarks

ContentReflector has a unique fundamental layouting concept. The structure is basically divided into two areas which are ContentElement and ReflectionElement. By default, each area has equal size determined by the ContentHeight and ContentWidth property. The default values for these properties are Double.NaN.

Using these default settings, you need to set the content reflector's height twice as large as its content when the ReflectionPosition is set to Top or Bottom, and content reflector’s width twice as large as its content when the ReflectionPosition is set to Left or Right.

The following examples show how to use ContentReflector with various ReflectionPosition.

XAML Copy Code
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
    VerticalAlignment="Center">
    <Intersoft:ContentReflector Height="200" Width="100" Margin="4">
        <Grid>
            <Image Source="/Hydrangeas.jpg" Stretch="Fill"/>
        </Grid>
    </Intersoft:ContentReflector>
    <Intersoft:ContentReflector Height="200" Width="100" Margin="4"
        ReflectionPosition="Top">
        <Grid>
            <Image Source="/Hydrangeas.jpg" Stretch="Fill"/>
        </Grid>
    </Intersoft:ContentReflector>
</StackPanel>
XAML Copy Code
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
    VerticalAlignment="Center">
    <Intersoft:ContentReflector Height="100" Width="200" Margin="4"
        ReflectionPosition="Left">
        <Grid>
            <Image Source="/Hydrangeas.jpg" Stretch="Fill"/>
        </Grid>
    </Intersoft:ContentReflector>
    <Intersoft:ContentReflector Height="100" Width="200" Margin="4"
        ReflectionPosition="Right">
        <Grid>
            <Image Source="/Hydrangeas.jpg" Stretch="Fill"/>
        </Grid>
    </Intersoft:ContentReflector>
</StackPanel>

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.