Defines a factory for view provider objects.
Syntax
Attributes
- GuidAttribute("cd770614-65c4-426c-9494-34fc43554862")
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The IFrameworkViewSource interface has these types of members:
Methods
The IFrameworkViewSource interface has these methods. It also inherits methods from the Object class.
| Method | Description |
|---|---|
| CreateView | A method that returns a view provider object. |
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. View providers must be attributed as MTAThread.
ref class MyFrameworkViewSource : IFrameworkViewSource { public: virtual IFrameworkView^ CreateView() { return ref new MyFrameworkView(); // see IFrameworkView for implementation specifics } }; // ... [Platform::MTAThread] int main(Platform::Array<Platform::String^>^) { auto frameworkViewSource = ref new MyFrameworkViewSource(); Windows::ApplicationModel::Core::CoreApplication::Run(frameworkViewSource); return 0; }
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 2/25/2013