Class Viewbox

Namespace
Forma
Assembly
Forma.dll

Scales one visual child for contained, covered, or stretched drawing with configurable alignment and sampling.

public sealed class Viewbox : Container, IAddChild<Control>, IAddChild, INotifyPropertyChanged
Inheritance
Viewbox
Implements
Inherited Members

Constructors

Viewbox()

public Viewbox()

Properties

HorizontalAlignment

public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

HorizontalAlignment

SamplingMode

public ImageSamplingMode SamplingMode { get; set; }

Property Value

ImageSamplingMode

Stretch

public ImageStretch Stretch { get; set; }

Property Value

ImageStretch

VerticalAlignment

public VerticalAlignment VerticalAlignment { get; set; }

Property Value

VerticalAlignment

Methods

AddChild(Control)

public override void AddChild(Control child)

Parameters

child Control

ArrangeChildren()

protected override void ArrangeChildren()

GetDestination(Point)

public Rectangle GetDestination(Point sourceSize)

Parameters

sourceSize Point

Returns

Rectangle

GetMinimumSize()

public override Vector2 GetMinimumSize()

Returns

Vector2