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).
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<TRoot, T>(MewProperty<T>, TRoot, BindingPath<TRoot, T>, BindingMode?, T)
MewObject.ClearBinding<T>(MewProperty<T>)
MewObject.SetBinding<T>(MewProperty<T>, MewObject, MewProperty<T>)
Namespace: MewExtendedToolkit
Assembly: MewExtendedToolkit.dll
Syntax
public sealed class TransformBox : FrameworkElement, IDisposable, IVisualTreeHost
Fields
| Edit this page View SourceChildProperty
Declaration
public static readonly MewProperty<UIElement?> ChildProperty
Field Value
| Type | Description |
|---|---|
| MewProperty<UIElement> |
RotationDegreesProperty
Declaration
public static readonly MewProperty<double> RotationDegreesProperty
Field Value
| Type | Description |
|---|---|
| MewProperty<double> |
ScaleXProperty
Declaration
public static readonly MewProperty<double> ScaleXProperty
Field Value
| Type | Description |
|---|---|
| MewProperty<double> |
ScaleYProperty
Declaration
public static readonly MewProperty<double> ScaleYProperty
Field Value
| Type | Description |
|---|---|
| MewProperty<double> |
TranslateXProperty
Declaration
public static readonly MewProperty<double> TranslateXProperty
Field Value
| Type | Description |
|---|---|
| MewProperty<double> |
TranslateYProperty
Declaration
public static readonly MewProperty<double> TranslateYProperty
Field Value
| Type | Description |
|---|---|
| MewProperty<double> |
Properties
| Edit this page View SourceChild
Declaration
public UIElement? Child { get; set; }
Property Value
| Type | Description |
|---|---|
| UIElement |
HasTransform
Declaration
public bool HasTransform { get; }
Property Value
| Type | Description |
|---|---|
| bool |
RotationDegrees
Declaration
public double RotationDegrees { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
ScaleX
Declaration
public double ScaleX { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
ScaleY
Declaration
public double ScaleY { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
TranslateX
Declaration
public double TranslateX { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
TranslateY
Declaration
public double TranslateY { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
| Edit this page View SourceArrangeContent(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
Aprillz.MewUI.IVisualTreeHost