Skip to content

TransformDecorator class

Hosts a single child drawn under an affine transform. Hit testing and coordinate conversion (TranslatePoint, mouse positions, popup anchors) follow the transform.

Guide: C# Markup guide

public sealed class TransformDecorator : FrameworkElement, IVisualTreeHost
name description
TransformDecorator() The default constructor.
Child { get; set; } Gets or sets the child element.
Mode { get; set; } Gets or sets whether the transform takes part in layout; the default is Render.
Transform { get; set; } Gets or sets the transform applied to the child, in DIPs; the default is identity.
TransformOrigin { get; set; } Gets or sets the point the transform is applied about in Render mode, as a fraction of this element’s size (0..1); the default is the center (0.5, 0.5).
static readonly ChildProperty
static readonly ModeProperty
static readonly TransformOriginProperty
static readonly TransformProperty