Window.DragResize Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

In trusted applications, begins a mouse drag operation to move the specified window edge or corner.

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

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Sub DragResize ( _
    resizeEdge As WindowResizeEdge _
)
[SecuritySafeCriticalAttribute]
public void DragResize(
    WindowResizeEdge resizeEdge
)

Parameters

Exceptions

Exception Condition
UnauthorizedAccessException

The current thread is not the user interface (UI) thread.

SecurityException

Application.HasElevatedPermissions is false.

Remarks

You typically use this method to implement a way for users to drag the window edges and corners when you hide the window border. For information about hiding the border, see How to: Configure an Application for Out-of-Browser Support.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.