ReflectionContentControl Class
Represents a ContentControl that displays its content and a reflection of the content below it.
public class ReflectionContentControl : ContentControl
- Inheritance:
- object Visual UIElement FrameworkElement Control ContentControl object
Constructors
ReflectionContentControl()
Initializes an instance of the class.
public ReflectionContentControl()
ReflectionContentControl(object)
Initializes an instance of the class.
public ReflectionContentControl(object content)
| Parameter | Type | Description |
|---|---|---|
| content | object | The object to use as the content. |
Properties
ReflectionEndOffset
The offset at which the end opacity (least opaque) is located in the reflection.
ReflectionEndOpacity
The opacity of the reflection at its ending (least opaque) point.
public double ReflectionEndOpacity { get; set; }
Property Value
- double:
The default value is
0.0, meaning transparent.
ReflectionHeight
The height of the reflection.
public double ReflectionHeight { get; set; }
Property Value
- double:
The default value is
NaN, meaning that the height will be the same height as the content.
ReflectionMargin
The margin distance between the content and the reflection.
ReflectionSkewAngleX
The skew angle of the reflection in the x-plane.
public double ReflectionSkewAngleX { get; set; }
Property Value
- double:
The default value is
0, meaning no skew is applied.
ReflectionStartOpacity
The opacity of the reflection at its starting (most opaque) point.
public double ReflectionStartOpacity { get; set; }
Property Value
- double:
The default value is
0.4, meaning40%opaque.
Methods
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
protected override void OnRender(DrawingContext drawingContext)
| Parameter | Type | Description |
|---|---|---|
| drawingContext | DrawingContext | The drawing instructions for a specific element. This context is provided to the layout system. |
Fields
ReflectionEndOffsetProperty
Defines the ReflectionEndOffset property.
public static readonly DependencyProperty ReflectionEndOffsetProperty
ReflectionEndOpacityProperty
Defines the ReflectionEndOpacity property.
public static readonly DependencyProperty ReflectionEndOpacityProperty
ReflectionHeightProperty
Defines the ReflectionHeight property.
public static readonly DependencyProperty ReflectionHeightProperty
ReflectionMarginProperty
Defines the ReflectionMargin property.
public static readonly DependencyProperty ReflectionMarginProperty
ReflectionSkewAngleXProperty
Defines the ReflectionSkewAngleX property.
public static readonly DependencyProperty ReflectionSkewAngleXProperty
ReflectionStartOpacityProperty
Defines the ReflectionStartOpacity property.
public static readonly DependencyProperty ReflectionStartOpacityProperty