IFrameworkViewSource IFrameworkViewSource IFrameworkViewSource IFrameworkViewSource Interface


Defines a factory for view provider objects.

public : interface IFrameworkViewSourcepublic interface IFrameworkViewSourcePublic Interface IFrameworkViewSource// This API is not available in Javascript.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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. View providers must be attributed as MTAThread.

ref class MyFrameworkViewSource : IFrameworkViewSource
    virtual IFrameworkView^ CreateView()
        return ref new MyFrameworkView(); // see IFrameworkView for implementation specifics

int main(Platform::Array<Platform::String^>^)
    auto frameworkViewSource = ref new MyFrameworkViewSource();
    return 0;


CreateView() CreateView() CreateView() CreateView()

Returns a view provider object.

public : IFrameworkView CreateView()public IFrameworkView CreateView()Public Function CreateView() As IFrameworkView// This API is not available in Javascript.

An object that implements a view provider.

See Also

See Also