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
SamplingMode
public ImageSamplingMode SamplingMode { get; set; }
Property Value
Stretch
public ImageStretch Stretch { get; set; }
Property Value
VerticalAlignment
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
Methods
AddChild(Control)
public override void AddChild(Control child)
Parameters
childControl
ArrangeChildren()
protected override void ArrangeChildren()
GetDestination(Point)
public Rectangle GetDestination(Point sourceSize)
Parameters
sourceSizePoint
Returns
- Rectangle
GetMinimumSize()
public override Vector2 GetMinimumSize()
Returns
- Vector2