FrameworkView Klasse

Definition

Stellt das Benutzeroberflächenfenster einer Anwendung dar.

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)]
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.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)]
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.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class FrameworkView : IFrameworkView
Public NotInheritable Class FrameworkView
Implements IFrameworkView
Vererbung
Object Platform::Object IInspectable FrameworkView
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Diese Klasse stellt die Infrastrukturunterstützung bereit, sodass die Application-Klasse die richtigen Threading- und Objektlebensdauernüberlegungen für das IFrameworkView-Muster aufweist, das vom Kern-App-Modell verwendet wird. Die meisten UWP-Apps, die C++-, C#- oder Visual Basic-Entwicklungsszenarien verwenden, verwenden diese Klasse nicht direkt.

Konstruktoren

FrameworkView()

Initialisiert eine neue instance der FrameworkView-Klasse.

Methoden

Initialize(CoreApplicationView)

Initialisiert die Ansicht.

Load(String)

Lädt die Ansicht.

Run()

Übergibt die Ausführung an den Ansichtsanbieter.

SetWindow(CoreWindow)

Ordnet ein Fenster einer Ansicht zu.

Uninitialize()

Gibt die Ansicht in den nicht initialisierten Zustand zurück.

Gilt für:

Weitere Informationen