Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.05 KB

applicationview_getforcurrentview_1363600702.md

File metadata and controls

26 lines (18 loc) · 1.05 KB
-api-id -api-type
M:Windows.UI.ViewManagement.ApplicationView.GetForCurrentView
winrt method

Windows.UI.ViewManagement.ApplicationView.GetForCurrentView

-description

Gets the view state and behavior settings of the active application.

-returns

An ApplicationView instance that can be used to get and set app display properties.

-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.

Caution

You can call ApplicationView.GetForCurrentView only after the CoreWindow has been constructed, so it is not safe to call this method in an app's constructor. Instead, the call should be deferred until Application.OnLaunched.

-examples

-see-also