View. Get For Current View Method
Gets the view state and behavior settings of the active application.
public: static ApplicationView ^ GetForCurrentView();
static ApplicationView GetForCurrentView();
public static ApplicationView GetForCurrentView();
Public Shared Function GetForCurrentView () As ApplicationView
An ApplicationView instance that can be used to get and set app display properties.
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.