FrameworkView Class

Definition

Represents the UI window of an application.

Equivalent WinUI class: Microsoft.UI.Xaml.FrameworkView.

public ref class FrameworkView sealed : IFrameworkView
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class FrameworkView final : IFrameworkView
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.WebHostHidden]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class FrameworkView final : IFrameworkView
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class FrameworkView : IFrameworkView
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.WebHostHidden]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class FrameworkView : IFrameworkView
Public NotInheritable Class FrameworkView
Implements IFrameworkView
Inheritance
FrameworkView
Attributes
Implements

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

This class provides the infrastructure support so that the Application class has correct threading and object lifetime considerations for the IFrameworkView pattern used by the core app model. Most UWP app using C++, C#, or Visual Basic development scenarios don't do anything with this class directly.

Constructors

FrameworkView()

Initializes a new instance of the FrameworkView class.

Equivalent WinUI constructor: Microsoft.UI.Xaml.FrameworkView.FrameworkView.

Methods

Initialize(CoreApplicationView)

Initializes the view.

Equivalent WinUI method: Microsoft.UI.Xaml.FrameworkView.Initialize.

Load(String)

Loads the view.

Equivalent WinUI method: Microsoft.UI.Xaml.FrameworkView.Load.

Run()

Passes execution to the view provider.

Equivalent WinUI method: Microsoft.UI.Xaml.FrameworkView.Run.

SetWindow(CoreWindow)

Associates a Window with a view.

Equivalent WinUI method: Microsoft.UI.Xaml.FrameworkView.SetWindow.

Uninitialize()

Returns the view to the uninitialized state.

Equivalent WinUI method: Microsoft.UI.Xaml.FrameworkView.Uninitialize.

Applies to

See also