• Api Documentation
  • Source Code
Search Results for

    Show / Hide Table of Contents
    • MewExtendedToolkit
      • AboutBox
      • AboutBoxExtensions
      • InputBox
      • ObservableValueExtensions
      • SharpAppProperties
      • TransformBox
      • TransformBoxExtensions
      • Wizard
      • WizardExtensions
      • WizardPage
      • WizardPageExtensions
    • MewExtendedToolkit.Html
      • ControlExtensions
      • HtmlContainer
      • HtmlControl
      • HtmlLabel
      • HtmlPanel

    Class TransformBox

    Decorator that applies a composed Matrix3x2 transform before rendering the child. Transform order: Translate(-origin) → Scale → Rotate → Translate(+origin + offset). Origin is relative (0.0–1.0) to the content bounds; defaults to center (0.5, 0.5).

    Inheritance
    object
    MewObject
    Element
    UIElement
    FrameworkElement
    TransformBox
    Implements
    IDisposable
    IVisualTreeHost
    Inherited Members
    FrameworkElement.WidthProperty
    FrameworkElement.HeightProperty
    FrameworkElement.MinWidthProperty
    FrameworkElement.MinHeightProperty
    FrameworkElement.MaxWidthProperty
    FrameworkElement.MaxHeightProperty
    FrameworkElement.MarginProperty
    FrameworkElement.HorizontalAlignmentProperty
    FrameworkElement.VerticalAlignmentProperty
    FrameworkElement.TagProperty
    FrameworkElement.ToolTipProperty
    FrameworkElement.ContextMenuProperty
    FrameworkElement.GetDpi()
    FrameworkElement.Dispose()
    FrameworkElement.StyleSheet
    FrameworkElement.ToolTip
    FrameworkElement.ContextMenu
    FrameworkElement.Width
    FrameworkElement.Height
    FrameworkElement.MinWidth
    FrameworkElement.MinHeight
    FrameworkElement.MaxWidth
    FrameworkElement.MaxHeight
    FrameworkElement.Margin
    FrameworkElement.HorizontalAlignment
    FrameworkElement.VerticalAlignment
    FrameworkElement.Tag
    FrameworkElement.ActualWidth
    FrameworkElement.ActualHeight
    FrameworkElement.SizeChanged
    UIElement.CacheModeProperty
    UIElement.IsVisibleProperty
    UIElement.IsEnabledProperty
    UIElement.IsEffectivelyEnabledProperty
    UIElement.IsFocusedProperty
    UIElement.IsFocusWithinProperty
    UIElement.IsMouseOverProperty
    UIElement.IsMouseCapturedProperty
    UIElement.OpacityProperty
    UIElement.IsHitTestVisibleProperty
    UIElement.TabIndexProperty
    UIElement.IsTabStopProperty
    UIElement.FocusableProperty
    UIElement.SkipViewportCullProperty
    UIElement.CursorProperty
    UIElement.AllowDropProperty
    UIElement.CanDragProperty
    UIElement.InvalidateVisual()
    UIElement.Render(IGraphicsContext)
    UIElement.InvalidateVisualState()
    UIElement.HitTest(Point)
    UIElement.Focus()
    UIElement.PointToScreen(Point)
    UIElement.PointFromScreen(Point)
    UIElement.RectToScreen(Rect)
    UIElement.RectFromScreen(Rect)
    UIElement.BeginDrag(IDataObject, DragDropEffects, DragPreviewContent)
    UIElement.CacheMode
    UIElement.SkipViewportCull
    UIElement.IsVisible
    UIElement.IsEnabled
    UIElement.IsEffectivelyEnabled
    UIElement.Opacity
    UIElement.IsHitTestVisible
    UIElement.TabIndex
    UIElement.IsTabStop
    UIElement.Cursor
    UIElement.IsFocused
    UIElement.IsFocusWithin
    UIElement.IsMouseOver
    UIElement.IsMouseCaptured
    UIElement.Focusable
    UIElement.AllowDrop
    UIElement.CanDrag
    UIElement.Transitions
    UIElement.Triggers
    UIElement.GotFocus
    UIElement.LostFocus
    UIElement.MouseEnter
    UIElement.MouseLeave
    UIElement.MouseDown
    UIElement.MouseDoubleClick
    UIElement.MouseUp
    UIElement.MouseMove
    UIElement.MouseWheel
    UIElement.KeyDown
    UIElement.KeyUp
    UIElement.DragEnter
    UIElement.DragOver
    UIElement.DragLeave
    UIElement.Drop
    UIElement.DragStarting
    UIElement.DragCompleted
    Element.FindLogicalRoot()
    Element.Measure(Size)
    Element.Arrange(Rect)
    Element.InvalidateMeasure()
    Element.InvalidateArrange()
    Element.FindVisualRoot()
    Element.IsAncestorOf(Element)
    Element.IsDescendantOf(Element)
    Element.TransformToAncestor(Element)
    Element.TransformToDescendant(Element)
    Element.TransformToVisual(Element)
    Element.TranslatePoint(Point, Element)
    Element.TranslateRect(Rect, Element)
    Element.Commands
    Element.InputMap
    Element.DesiredSize
    Element.RenderSize
    Element.Parent
    Element.LogicalParent
    Element.IsMeasureDirty
    Element.IsArrangeDirty
    MewObject.SetCurrentValue<T>(MewProperty<T>, T)
    MewObject.ClearLocalValue<T>(MewProperty<T>)
    MewObject.SetBinding<T>(MewProperty<T>, ObservableValue<T>, BindingMode?)
    MewObject.SetBinding<TProp, TSource>(MewProperty<TProp>, ObservableValue<TSource>, Func<TSource, TProp>, Func<TProp, TSource>, BindingMode?)
    MewObject.SetBinding<TRoot, T>(MewProperty<T>, TRoot, BindingPath<TRoot, T>, BindingMode?, T)
    MewObject.SetBinding<TProp, TRoot, TSource>(MewProperty<TProp>, TRoot, BindingPath<TRoot, TSource>, Func<TSource, TProp>, Func<TProp, TSource>, BindingMode?, TProp)
    MewObject.SetBinding<TSource, T>(MewProperty<T>, TSource, Func<TSource, T>, Action<TSource, T>, BindingMode?, string)
    MewObject.SetBinding<TProp, TSource, TValue>(MewProperty<TProp>, TSource, Func<TSource, TValue>, Func<TValue, TProp>, Action<TSource, TValue>, Func<TProp, TValue>, BindingMode?, string)
    MewObject.SetBinding<TSource, T>(MewProperty<T>, TSource, Func<TSource, ObservableValue<T>>, BindingMode?)
    MewObject.ClearBinding<T>(MewProperty<T>)
    MewObject.SetBinding<T>(MewProperty<T>, MewObject, MewProperty<T>)
    MewObject.SetBinding<TProp, TSource>(MewProperty<TProp>, MewObject, MewProperty<TSource>, Func<TSource, TProp>, Func<TProp, TSource>, BindingMode?)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MewExtendedToolkit
    Assembly: MewExtendedToolkit.dll
    Syntax
    public sealed class TransformBox : FrameworkElement, IDisposable, IVisualTreeHost

    Fields

    | Edit this page View Source

    ChildProperty

    Declaration
    public static readonly MewProperty<UIElement?> ChildProperty
    Field Value
    Type Description
    MewProperty<UIElement>
    | Edit this page View Source

    RotationDegreesProperty

    Declaration
    public static readonly MewProperty<double> RotationDegreesProperty
    Field Value
    Type Description
    MewProperty<double>
    | Edit this page View Source

    ScaleXProperty

    Declaration
    public static readonly MewProperty<double> ScaleXProperty
    Field Value
    Type Description
    MewProperty<double>
    | Edit this page View Source

    ScaleYProperty

    Declaration
    public static readonly MewProperty<double> ScaleYProperty
    Field Value
    Type Description
    MewProperty<double>
    | Edit this page View Source

    TranslateXProperty

    Declaration
    public static readonly MewProperty<double> TranslateXProperty
    Field Value
    Type Description
    MewProperty<double>
    | Edit this page View Source

    TranslateYProperty

    Declaration
    public static readonly MewProperty<double> TranslateYProperty
    Field Value
    Type Description
    MewProperty<double>

    Properties

    | Edit this page View Source

    Child

    Declaration
    public UIElement? Child { get; set; }
    Property Value
    Type Description
    UIElement
    | Edit this page View Source

    HasTransform

    Declaration
    public bool HasTransform { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    RotationDegrees

    Declaration
    public double RotationDegrees { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    ScaleX

    Declaration
    public double ScaleX { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    ScaleY

    Declaration
    public double ScaleY { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    TranslateX

    Declaration
    public double TranslateX { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    TranslateY

    Declaration
    public double TranslateY { get; set; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    ArrangeContent(Rect)

    Arranges the content. Override in derived classes.

    Declaration
    protected override void ArrangeContent(Rect bounds)
    Parameters
    Type Name Description
    Rect bounds
    Overrides
    Aprillz.MewUI.Controls.FrameworkElement.ArrangeContent(Aprillz.MewUI.Rect)
    | Edit this page View Source

    MeasureContent(Size)

    Measures the content. Override in derived classes.

    Declaration
    protected override Size MeasureContent(Size availableSize)
    Parameters
    Type Name Description
    Size availableSize
    Returns
    Type Description
    Size
    Overrides
    Aprillz.MewUI.Controls.FrameworkElement.MeasureContent(Aprillz.MewUI.Size)
    | Edit this page View Source

    OnHitTest(Point)

    Declaration
    protected override UIElement? OnHitTest(Point point)
    Parameters
    Type Name Description
    Point point
    Returns
    Type Description
    UIElement
    Overrides
    Aprillz.MewUI.Controls.UIElement.OnHitTest(Aprillz.MewUI.Point)
    | Edit this page View Source

    RenderSubtree(IGraphicsContext)

    Renders child elements and internal visual parts (content, chrome, scrollbars, etc.). Called after Aprillz.MewUI.Controls.UIElement.OnRender(Aprillz.MewUI.Rendering.IGraphicsContext).

    Declaration
    protected override void RenderSubtree(IGraphicsContext context)
    Parameters
    Type Name Description
    IGraphicsContext context
    Overrides
    Aprillz.MewUI.Controls.UIElement.RenderSubtree(Aprillz.MewUI.Rendering.IGraphicsContext)

    Implements

    IDisposable
    Aprillz.MewUI.IVisualTreeHost

    Extension Methods

    TransformBoxExtensions.Child(TransformBox, UIElement?)
    TransformBoxExtensions.RotationDegrees(TransformBox, double)
    TransformBoxExtensions.Scale(TransformBox, double, double)
    TransformBoxExtensions.ScaleX(TransformBox, double)
    TransformBoxExtensions.ScaleY(TransformBox, double)
    TransformBoxExtensions.Translate(TransformBox, double, double)
    TransformBoxExtensions.TranslateX(TransformBox, double)
    TransformBoxExtensions.TranslateY(TransformBox, double)
    • Edit this page
    • View Source
    In this article
    Back to top Copyright (c) 2026 Jérémy Ansel