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

Is there a StatusBar Message Event ? #844

Closed
vecerilek opened this issue Jan 22, 2021 · 4 comments
Closed

Is there a StatusBar Message Event ? #844

vecerilek opened this issue Jan 22, 2021 · 4 comments
Assignees
Labels
feature request feature request tracked We are tracking this work internally.

Comments

@vecerilek
Copy link

vecerilek commented Jan 22, 2021

I'm using webview2 without statusbar (CoreWebView2.Settings.IsStatusBarEnabled = False).
Is there any event for StatusBar Message change?
I want to use my own status bar which do not overlap the webpage.
Thanks.

AB#31439064

@champnic champnic added feature request feature request tracked We are tracking this work internally. labels Jan 23, 2021
@champnic
Copy link
Member

Not currently. You can probably semi-implement this yourself by injecting script which detects when links are being hovered or something like that. It's a reasonable ask though, so I'll add it to our backlog (though I think it will be low priority so probably won't get added for a while).

@jasonstephen15
Copy link
Contributor

jasonstephen15 commented May 27, 2021

Hi @vecerilek, after some investigation I have a couple of follow up questions/concerns:

  • Have you tried something like this in javascript? My suspicion is that you would be able to setup a script to track hovering over a link, and simply checking the window.status of the link, and outputting that via your own custom UI.

  • Could you provide more context into why you're trying to display the status via your own UI? Is the current one intrusive/doesn't meet your theming?

@vecerilek
Copy link
Author

Hi Jason,
I have my own statusbar for other purposes, so it seemed convenient to use it also for webview messages and avoid webpage overlapping. To be honest, actually I enabled your status bar and it's ok. You can cancel this request.
What bothers me more is getting favicon as I already submited as other feature request. Using Javasript or google api is just temporary solution for me.
Thanks a lot.

@champnic
Copy link
Member

This is now available in 1.0.1158-prerelease+, and will be released in an upcoming SDK.
https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.statusbartextchanged?view=webview2-dotnet-1.0.1189-prerelease

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

4 participants