Windows Dev Center

ApplicationView.TryUnsnap | tryUnsnap method

[TryUnsnap may be altered or unavailable for releases after Windows 8.1. Apps can be continuously resized, but cannot be snapped, starting in Windows 8.1. ALso, ApplicationView static methods may be altered or unavailable for releases after Windows 8.1. Use ApplicationView.GetForCurrentView to get an ApplicationView object.]

Attempts to unsnap a previously snapped app. This call will only succeed when the app is running in the foreground.

Syntax


Public Shared Function TryUnsnap() As Boolean

Parameters

This method has no parameters.

Return value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

true if the app has been successfully unsnapped; false if the unsnap attempt failed.

Remarks

This is a static member of the ApplicationView class. For JavaScript this means that it is a method of the ApplicationView class, not of the window object that getForCurrentView creates.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.ViewManagement
Windows::UI::ViewManagement [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.ViewManagement
Windows::UI::ViewManagement [C++]

Metadata

Windows.winmd

Attributes

[Deprecated()]

See also

ApplicationView
Snap sample

 

 

Show:
© 2015 Microsoft