共用方式為


Page.SetModalPresentationStyle 方法

定義

設定的 Page強制回應呈現樣式。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::Page ^> ^ SetModalPresentationStyle(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::Page ^> ^ config, Microsoft::Maui::Controls::PlatformConfiguration::iOSSpecific::UIModalPresentationStyle value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.Page> SetModalPresentationStyle (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.Page> config, Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.UIModalPresentationStyle value);
static member SetModalPresentationStyle : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.Page> * Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.UIModalPresentationStyle -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.Page>
<Extension()>
Public Function SetModalPresentationStyle (config As IPlatformElementConfiguration(Of iOS, Page), value As UIModalPresentationStyle) As IPlatformElementConfiguration(Of iOS, Page)

參數

config
IPlatformElementConfiguration<iOS,Page>

平台特定組態,包含要對其執行作業的項目。

value
UIModalPresentationStyle

強制響應簡報樣式。

傳回

平台特定組態,包含要對其執行作業的項目。

適用於