In This Article

ReflectionContentControl Class

Represents a ContentControl that displays its content and a reflection of the content below it.

public class ReflectionContentControl : ContentControl, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
Inheritance:
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ContentControl Object

Remarks

For detailed documentation on this control's features and how to use them, please see the ReflectionContentControl documentation topic.

Constructors

ReflectionContentControl()

Initializes an instance of the ReflectionContentControl class.

public ReflectionContentControl()

ReflectionContentControl(Object)

Initializes an instance of the ReflectionContentControl class.

public ReflectionContentControl(object content)
Parameter Type Description
content Object

The object to use as the content.

Properties

ReflectionEndOffset

Gets or sets the offset at which the end opacity (least opaque) is located in the reflection.

public double ReflectionEndOffset { get; set; }

Property Value

Double:

The offset at which the end opacity (least opaque) is located in the reflection. The default value is 0.9.

ReflectionEndOpacity

Gets or sets the opacity of the reflection at its ending (least opaque) point.

public double ReflectionEndOpacity { get; set; }

Property Value

Double:

The opacity of the reflection at its starting (least opaque) point. The default value is 0.0, meaning transparent.

ReflectionHeight

Gets or sets the height of the reflection.

public double ReflectionHeight { get; set; }

Property Value

Double:

The height of the reflection. The default value is NaN, meaning that the height will be the same height as the content.

ReflectionMargin

Gets or sets the margin distance between the content and the reflection.

public double ReflectionMargin { get; set; }

Property Value

Double:

The margin distance between the content and the reflection. The default value is 0.

ReflectionSkewAngleX

Gets or sets the skew angle of the reflection in the x-plane.

public double ReflectionSkewAngleX { get; set; }

Property Value

Double:

The skew angle of the reflection in the x-plane. The default value is 0, meaning no skew is applied.

ReflectionStartOpacity

Gets or sets the opacity of the reflection at its starting (most opaque) point.

public double ReflectionStartOpacity { get; set; }

Property Value

Double:

The opacity of the reflection at its starting (most opaque) point. The default value is 0.4, meaning 40% opaque.

Methods

OnRender(DrawingContext)

When overridden in a derived class, participates in rendering operations that are directed by the layout system.

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

Identifies the ReflectionEndOffset dependency property. This field is read-only.

public static readonly DependencyProperty ReflectionEndOffsetProperty

ReflectionEndOpacityProperty

Identifies the ReflectionEndOpacity dependency property. This field is read-only.

public static readonly DependencyProperty ReflectionEndOpacityProperty

ReflectionHeightProperty

Identifies the ReflectionHeight dependency property. This field is read-only.

public static readonly DependencyProperty ReflectionHeightProperty

ReflectionMarginProperty

Identifies the ReflectionMargin dependency property. This field is read-only.

public static readonly DependencyProperty ReflectionMarginProperty

ReflectionSkewAngleXProperty

Identifies the ReflectionSkewAngleX dependency property. This field is read-only.

public static readonly DependencyProperty ReflectionSkewAngleXProperty

ReflectionStartOpacityProperty

Identifies the ReflectionStartOpacity dependency property. This field is read-only.

public static readonly DependencyProperty ReflectionStartOpacityProperty

Inherited Members

Extension Methods