Share via


Page.SetModalPresentationStyle Method

Definition

Sets the modal presentation style of the 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)

Parameters

config
IPlatformElementConfiguration<iOS,Page>

The platform specific configuration that contains the element on which to perform the operation.

value
UIModalPresentationStyle

The modal presentation style.

Returns

The platform specific configuration that contains the element on which to perform the operation.

Applies to