ApplicationView.TryUnsnap | tryUnsnap method

Applies to Windows only

[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


var boolean = Windows.UI.ViewManagement.ApplicationView.tryUnsnap();

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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

End of client support

Windows 8.1

End of server support

Windows Server 2012 R2

Namespace

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

Metadata

Windows.winmd

See also

ApplicationView
Snap sample

 

 

Show:
© 2014 Microsoft