CoreApplication.GetCurrentView Method

Definition

Gets the active view for the app.

public:
 static CoreApplicationView ^ GetCurrentView();
 static CoreApplicationView GetCurrentView();
public static CoreApplicationView GetCurrentView();
function getCurrentView()
Public Shared Function GetCurrentView () As CoreApplicationView

Returns

CoreApplicationView

The active view.

Remarks

A CoreApplicationView is an app window and its thread.

Windows Phone 8

This API is supported in native apps only.

Applies to