Resize Method
Collapse the table of content
Expand the table of content

ITransformProvider.Resize Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Resizes the control.

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Sub Resize ( _
	width As Double, _
	height As Double _
)

Parameters

width
Type: System.Double
The new width of the window, in pixels.
height
Type: System.Double
The new height of the window, in pixels.

When this method is called for a control that supports split panes, it can have the side effect of resizing other contiguous panes.

An object cannot be moved, resized, or rotated in such a way that its resulting screen location would be completely outside the coordinates of its container, and therefore would be inaccessible to the keyboard or the mouse. For example, this would occur if a top-level window were moved completely off-screen, or if a child object were moved outside the boundaries of the container's viewport. In these cases, the object is placed as close to the requested screen coordinates as possible, and the top or left coordinates are overridden to be within the container boundaries.

Consider raising InvalidOperationException if the CanResize property is false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft