इसके माध्यम से साझा किया गया


CoreApplication.CreateNewView Method

Definition

Overloads

CreateNewView()

Creates a new view for the app.

CreateNewView(IFrameworkViewSource)

Creates a new view for the app.

CreateNewView(String, String)

Creates a new view for the app.

CreateNewView()

Creates a new view for the app.

public:
 static CoreApplicationView ^ CreateNewView();
/// [Windows.Foundation.Metadata.Overload("CreateNewViewFromMainView")]
 static CoreApplicationView CreateNewView();
[Windows.Foundation.Metadata.Overload("CreateNewViewFromMainView")]
public static CoreApplicationView CreateNewView();
function createNewView()
Public Shared Function CreateNewView () As CoreApplicationView

Returns

The view.

Attributes

Remarks

You cannot create a new view while the app is suspending or resuming.

See also

Applies to

CreateNewView(IFrameworkViewSource)

Creates a new view for the app.

public:
 static CoreApplicationView ^ CreateNewView(IFrameworkViewSource ^ viewSource);
/// [Windows.Foundation.Metadata.Overload("CreateNewViewWithViewSource")]
 static CoreApplicationView CreateNewView(IFrameworkViewSource const& viewSource);
[Windows.Foundation.Metadata.Overload("CreateNewViewWithViewSource")]
public static CoreApplicationView CreateNewView(IFrameworkViewSource viewSource);
function createNewView(viewSource)
Public Shared Function CreateNewView (viewSource As IFrameworkViewSource) As CoreApplicationView

Parameters

viewSource
IFrameworkViewSource

The view provider for the new view.

Returns

The view.

Attributes

Remarks

You cannot create a new view while the app is suspending or resuming.

See also

Applies to

CreateNewView(String, String)

Creates a new view for the app.

public:
 static CoreApplicationView ^ CreateNewView(Platform::String ^ runtimeType, Platform::String ^ entryPoint);
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("CreateNewView")]
 static CoreApplicationView CreateNewView(winrt::hstring const& runtimeType, winrt::hstring const& entryPoint);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("CreateNewView")]
public static CoreApplicationView CreateNewView(string runtimeType, string entryPoint);
function createNewView(runtimeType, entryPoint)
Public Shared Function CreateNewView (runtimeType As String, entryPoint As String) As CoreApplicationView

Parameters

runtimeType
String

Platform::String

winrt::hstring

The class ID of the view provider for the new view. If this parameter is null, use the current view provider.

entryPoint
String

Platform::String

winrt::hstring

Additional info about the view, such as its class name in the app code.

Returns

The view.

Attributes

Remarks

You cannot create a new view while the app is suspending or resuming.

See also

Applies to