You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to sync between my blazor app's PageTitle and the window's title but apparently PageTitle is ignored when running inside BlazorWebView control on winforms and maui.
Expected Behavior
PageTitle is set properly so i can read it with document.title with JS interop.
Steps To Reproduce
create a hybrid app.
create a new page and a nav to it.
put <PageTitle>something</PageTitle> in the new page.
run the app and navigate to the new page.
open the built in dev tools (F12).
on the console tab and run document.title.
the result is not something.
Exceptions (if any)
No response
.NET Version
9.0.200
Anything else?
No response
The text was updated successfully, but these errors were encountered:
ivanjx
changed the title
PageTitle does not modify title inside BlazorWebView
PageTitle does not modify document.title inside BlazorWebView
Mar 19, 2025
Have you added a RootComponent to the BlazorWebView component targeting head::after? The following is, admittedly, WPF and not MAUI, but might be similar enough to help.
Is there an existing issue for this?
Describe the bug
i am trying to sync between my blazor app's
PageTitle
and the window's title but apparentlyPageTitle
is ignored when running insideBlazorWebView
control on winforms and maui.Expected Behavior
PageTitle
is set properly so i can read it withdocument.title
with JS interop.Steps To Reproduce
<PageTitle>something</PageTitle>
in the new page.document.title
.something
.Exceptions (if any)
No response
.NET Version
9.0.200
Anything else?
No response
The text was updated successfully, but these errors were encountered: