共用方式為


IWindowCreator.CreateWindow(Application, IActivationState) 方法

定義

public:
 Microsoft::Maui::Controls::Window ^ CreateWindow(Microsoft::Maui::Controls::Application ^ app, Microsoft::Maui::IActivationState ^ activationState);
public Microsoft.Maui.Controls.Window CreateWindow (Microsoft.Maui.Controls.Application app, Microsoft.Maui.IActivationState? activationState);
abstract member CreateWindow : Microsoft.Maui.Controls.Application * Microsoft.Maui.IActivationState -> Microsoft.Maui.Controls.Window
Public Function CreateWindow (app As Application, activationState As IActivationState) As Window

參數

activationState
IActivationState

傳回

適用於