The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
CoreApplicationView class
Represents an app window and its thread.
Syntax
Attributes
- MarshalingBehaviorAttribute(Standard)
- MuseAttribute()
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The CoreApplicationView class has these types of members:
Events
The CoreApplicationView class has these events.
| Event | Description |
|---|---|
| Activated | Occurs when the view is activated. |
Methods
The CoreApplicationView class inherits methods from the Object class.
Properties
The CoreApplicationView class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets the app window associated with the current view. | |
| Read-only | Gets the value that indicates whether this app view is hosted or not. | |
| Read-only | Gets a value that indicates whether this app view is the main app view or not. |
Remarks
Note : This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).
The following code snippet demonstrates the activation of the CoreApplicationView and the associated CoreWindow in a view provider implementation.
ref class MyFrameworkView : public IFrameworkView { // ... virtual void Initialize( _In_ CoreApplicationView^ applicationView ) { applicationView->Activated += ref new TypedEventHandler<CoreApplicationView^, IActivatedEventArgs^>(this, &MyFrameworkView::OnActivated); } // ... void OnActivated( _In_ CoreApplicationView^ applicationView, _In_ IActivatedEventArgs^ args ) { // Activate the application window, making it visible and enabling it to receive events. CoreWindow::GetForCurrentThread()->Activate(); } // ... }
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
See also
- DirectX swap chain implementation sample
- CoreApplication.CreateNewView
- CoreApplication.GetCurrentView
Build date: 2/25/2013
