IFrameworkViewSource Interface

Defines a factory for view provider objects.

Syntax

public interface class IFrameworkViewSource  

Remarks

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.

Example

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;
}  

Requirements

Namespace: Windows.ApplicationModel.Core

Metadata: windows.winmd

See also

Reference

IFrameworkViewSource Members

Windows.ApplicationModel.Core Namespace