Skip to content

[WPF] BlazorWebview in Transparent WPF window is non interactable #9024

Closed as not planned
@honzapatCZ

Description

@honzapatCZ

Description

When you put a BlazerWebview into a WPF Window with AllowTransparency = true, the resulting WebView is non interactable(click through, can't type, etc.).

image

I suppose this can be somehow tied to #3395 as in both cases the WPF doesn't have any idea about interactions happening in the webview(ie don't know that something would have actually been clicked, etc.).

Note: I had to use the BlazorWebViewInitialized event to achieve full transparency(and use other features) would be cool if at least the DefaultBackgroundColor would be tied to the BlazorWebView XAML element's BackgroundColor.

Steps to Reproduce

Add BlazorWebView to a Window that has AllowTransparency=True

Expected Outcome: Resulting rendered html would have transparent parts and would be fully working
Actual Outcome: The rendered html has transparent parts, but is not interactable

Version with bug

6.0.400

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows 10

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorBlazor Hybrid / Desktop, BlazorWebViewplatform/windowss/needs-verificationIndicates that this issue needs initial verification before further triage will happent/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions