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
Hi,
I am working on WinForm application with WebView2 control. My question is, Is there any way I can inject css (using style link or style block? when web page loads in webview control? I tried using DOMContentLoaded, ContentLoading and NavigationCompleted events with functions ExecuteScriptAsync and AddScriptToExecuteOnDocumentCreatedAsync. Style gets added but it doesnt get applied. Any pointers?
This discussion was converted from issue #1637 on October 10, 2023 18:10.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am working on WinForm application with WebView2 control. My question is, Is there any way I can inject css (using style link or style block? when web page loads in webview control? I tried using DOMContentLoaded, ContentLoading and NavigationCompleted events with functions ExecuteScriptAsync and AddScriptToExecuteOnDocumentCreatedAsync. Style gets added but it doesnt get applied. Any pointers?
Beta Was this translation helpful? Give feedback.
All reactions