DisplayInformation.GetForCurrentView Method
Definition
Gets the DisplayInformation instance associated with the current thread's CoreApplicationView. This DisplayInformation instance is tied to the view and cannot be used from other threads.
public:
static DisplayInformation ^ GetForCurrentView();
static DisplayInformation GetForCurrentView();
public static DisplayInformation GetForCurrentView();
function getForCurrentView()
Public Shared Function GetForCurrentView () As DisplayInformation
Returns
A DisplayInformation object that provides display-related information for the current thread's view.
Remarks
This method is static. This method can fail if the current thread is not the UI thread for an application view.