IModalNavigationPlatformFactory.CreateModalNavigationPlatform Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the IModalNavigationPlatform for a window.
public:
Microsoft::Maui::Controls::Platform::IModalNavigationPlatform ^ CreateModalNavigationPlatform(Microsoft::Maui::Controls::Platform::IModalNavigationHost ^ host);
public Microsoft.Maui.Controls.Platform.IModalNavigationPlatform? CreateModalNavigationPlatform(Microsoft.Maui.Controls.Platform.IModalNavigationHost host);
abstract member CreateModalNavigationPlatform : Microsoft.Maui.Controls.Platform.IModalNavigationHost -> Microsoft.Maui.Controls.Platform.IModalNavigationPlatform
Public Function CreateModalNavigationPlatform (host As IModalNavigationHost) As IModalNavigationPlatform
Parameters
- host
- IModalNavigationHost
The per-window host that exposes the framework's modal navigation state. Keep a reference to it; it stays valid for the lifetime of the returned instance.
Returns
A new IModalNavigationPlatform owned and disposed by the framework, or
null to let the window keep the built-in platform implementation. Returning
null is useful when a backend only wants to override modal navigation for
certain windows.