MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Unable to set Language on WPF WebView2 when using PRISM

Open
#1,162 14 comments 0 reactions 1 assignee View on GitHub

@champnic is already working on this.

Since Apr 10, 2021.

bug priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Hello,

We use WebView2 in one of our WPF project. In this project, we use PRISM to manage navigation, view caching, events...
We also have an event triggered when a user change his current language.

But when this event is fired, I try to implement the change of the Language on the WebView2 but it isn't applied (the property Language of the component iw updated but event after a refresh on the component, webpage stay on the previous language. I have to restart my application in order to use the correct language.

With others WPF components, event if they are cached with PRISM mechanism, if we change the Language property, it is applied on the fly.

Is there a way to update immediatly the Language in my case ?

Thanks for you reply.
Ingrid

AB#34784444

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.