RexT
RexT

Reputation: 41

How to Set Scrollbar theme in XAML webview?

I'm creating a windows 10 xaml app. One of the views contains a webview which fetches some html.

My problem is that although the default theme on the app is set to dark, the scrollbar in the webview is always light, which jars against the rest of the UI.

I've tried setting the RequestedTheme=dark on the webview, but no joy

Upvotes: 2

Views: 782

Answers (2)

MH Rastegari
MH Rastegari

Reputation: 91

You need to set color-scheme in the root element!

Upvotes: 0

user3911053
user3911053

Reputation:

Unfortunately this isn't possible since the WebView is based off of Edge and Edge doesn't currently support it, as you can see here. If Edge gets this feature, you could simply insert a STYLE into your head element to define the color.

Upvotes: 2

Related Questions