A method that returns a view provider object.
public:
IFrameworkView^ CreateView()
Type: IFrameworkView
An object that implements a view provider.
C++
ref class MyAppViewSource : Windows::ApplicationModel::Core::IFrameworkViewSource
{
public:
Windows::ApplicationModel::Core::IFrameworkView^ CreateView();
};
...
IFrameworkView^ MyAppViewSource::CreateView()
{
return ref new CoreWindowEvents();
}
...
[Platform::MTAThread]
int main(Platform::Array<Platform::String^>^)
{
auto myAppViewSource = ref new MyAppViewSource();
CoreApplication::Run(myAppViewSource);
return 0;
}
Namespace: Windows.ApplicationModel.Core
Metadata: windows.winmd