Defines a factory for view provider objects.
public interface class IFrameworkViewSource
Instances of objects that implement this class are provided to the app object’s CoreApplication.Run method when the app starts, which uses it to create the views used by the app.
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