ApplicationView.GetApplicationViewIdForWindow method

Applies to Windows and Windows Phone

Gets the window ID that corresponds to a specific CoreWindow managed by the app.

Syntax


public static int GetApplicationViewIdForWindow(
  ICoreWindow window
)

Parameters

window

Type: ICoreWindow

Reference to the CoreWindow object that contains a window handle used by the app.

Return value

Type: System.Int32 [.NET] | int32 [C++]

The ID of the window associated with the supplied CoreWindow.

Remarks

Every view has an associated CoreWindow, which handles the core UI events for the window and manages drawing operations to the window. An app can have multiple views, with separate UI threads. Use this method to determine which window is provided by a specific CoreWindow instance managed by your app.

For languages other than Javascript, this is a static member of the ApplicationView class. JavaScript does not support this method.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

See also

ApplicationView

 

 

Show:
© 2014 Microsoft