Northwoods.GoWPF 1.3.5 Assembly
OnSizeChanged Method
See Also  Send Feedback
Northwoods.GoXam Namespace > DiagramPanel Class : OnSizeChanged Method

oldsize
a Size in element coordinates
newsize
a Size in element coordinates
This overridable method is called when the panel's actual size changes.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub OnSizeChanged( _
   ByVal oldsize As Size, _
   ByVal newsize As Size _
) 
C# 
protected virtual void OnSizeChanged( 
   Size oldsize,
   Size newsize
)

Parameters

oldsize
a Size in element coordinates
newsize
a Size in element coordinates

Remarks

This may change the DiagramPanel.Position and/or DiagramPanel.Scale in order to maintain the desired content alignment, depending on the Stretch policy. The DiagramPanel.Scale will not be greater than 1. This method may be called during initialization even if the old and new size values are the same. This respects the UseLayoutRounding property to round off the DiagramPanel.Position. This method calls OnViewportBoundsChanged.

Requirements

See Also

© 2012 All Rights Reserved.