GoXam for WPF v3
ZoomToFit(StretchPolicy,Action) Method
Northwoods.GoXam Namespace > DiagramPanel Class > ZoomToFit Method : ZoomToFit(StretchPolicy,Action) Method
normally a value of StretchPolicy.Uniform, but may be StretchPolicy.UniformToFill
an Action to be performed after the animation is finished; may be null
Change the Scale so that everything within the DiagramBounds fits within the viewport.
Syntax
public void ZoomToFit( 
   StretchPolicy policy,
   Action afterwards
)

Parameters

policy
normally a value of StretchPolicy.Uniform, but may be StretchPolicy.UniformToFill
afterwards
an Action to be performed after the animation is finished; may be null
Remarks
This calls SetScaleAndPosition to animate the changing scale and position.
See Also

Reference

DiagramPanel Class
DiagramPanel Members
Overload List