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

UWP WebView2 Change Source Issue #9211

Open
vsfeedback opened this issue Jan 5, 2024 · 4 comments
Open

UWP WebView2 Change Source Issue #9211

vsfeedback opened this issue Jan 5, 2024 · 4 comments
Labels
area-WebView bug Something isn't working product-winui2 team-Controls Issue for the Controls team

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]

<Grid.RowDefinitions>


</Grid.RowDefinitions>

<controls:WebView2 x:Name="MyWebView" Source="https://www.yangshipin.cn/#/tv/home?pid=600002475"/>
<Button x:Name="ChangeUrlButton" Content="Forward" Grid.Row="1" Click="ChangeUrlButton_Click"
              HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>

private void ChangeUrlButton_Click(object sender, RoutedEventArgs e)
{
MyWebView.Source = new Uri("https://www.yangshipin.cn/#/tv/home?pid=600002513");
}

In my UWP project, WebView2 version is 1.0.2210.55:
The ChangeUrlButton must be clicked twice,MyWebView Control will only navigate to a new page. The first click of the ChangeUrlButton will not cause any changes to the page.


Original Comments

Feedback Bot on 12/19/2023, 06:31 PM:

(private comment, text removed)

Ann Yang [MSFT] on 12/19/2023, 10:55 PM:

(private comment, text removed)

G o on 12/20/2023, 01:03 AM:

(private comment, text removed)

Feedback Bot on 12/20/2023, 06:15 PM:

(private comment, text removed)


Original Solutions

(no solutions)

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 5, 2024
Copy link

github-actions bot commented Jan 5, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@premiaware
Copy link

I have same issue on UWP App, if change Source Property to addess for example:

https://www.facebook.com/plugins/post.php?href=https%3a%2f%2fwww.facebook.com%2f101618071381073%2fposts%2f716130640583340&width=500&height=300

nothing change, the WebView2 control is empty.

@duncanmacmichael duncanmacmichael added the bug Something isn't working label Jan 12, 2024
@AdriVergara
Copy link

Having the same problem. I'm using WebView2 through an HybridHandler and the SourceChanged event handler is not called when navigating through the webview

@premiaware
Copy link

i think that this issue is related to this thread MicrosoftEdge/WebView2Feedback#4281

@bpulliam bpulliam added area-WebView team-Controls Issue for the Controls team product-winui2 and removed needs-triage Issue needs to be triaged by the area owners labels Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WebView bug Something isn't working product-winui2 team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

5 participants