Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add StartPath property to BlazorWebView #1745

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/user-interface/controls/blazorwebview.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Host a Blazor web app in a .NET MAUI app using BlazorWebView"
description: "The .NET MAUI BlazorWebView control enables you to host a Blazor web app in your .NET MAUI app, and integrate the app with device features."
ms.date: 01/18/2023
ms.date: 10/02/2023
---

# Host a Blazor web app in a .NET MAUI app using BlazorWebView
Expand All @@ -10,9 +10,21 @@ The .NET Multi-platform App UI (.NET MAUI) <xref:Microsoft.AspNetCore.Components

<xref:Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebView> defines the following properties:

::: moniker range="=net-maui-7.0"

- `HostPage`, of type `string?`, which defines the root page of the Blazor web app.
- `RootComponents`, of type `RootComponentsCollection`, which specifies the collection of root components that can be added to the control.

::: moniker-end

::: moniker range="=net-maui-8.0"

- `HostPage`, of type `string?`, which defines the root page of the Blazor web app.
- `RootComponents`, of type `RootComponentsCollection`, which specifies the collection of root components that can be added to the control.
- `StartPath`, of type `string`, which defines the path for initial navigation within the Blazor navigation context when the Blazor component is finished loading.

::: moniker-end

The `RootComponent` class defines the following properties:

- `Selector`, of type `string?`, which defines the CSS selector string that specifies where in the document the component should be placed.
Expand Down
Loading