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

Why does windows.xam.ul api change the binding of a webview2 source using communitywinui 8.02. #4614

Open
JohnDizzle opened this issue Jun 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JohnDizzle
Copy link

JohnDizzle commented Jun 5, 2024

What happened?

I was debugging my application and used a binding onthe source property;
xaml <Webview2 source="{x:Bind ViewModel.Source, mode=TwoWay, updateSourceProperty }:/>
private uri _source = default;
public uri Source { get { return _source; } set { SetProperty(ref _source, value); }.
I set the break point on the set property, and I seen the requested uri set, and then the windows.ui.xaml api set it to "about:blank" this occurred a couple of times, although binding was finally correct.
I was wondering why does this happen, and a fallbackvalue doesn't work either.

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

1.4.231115000

SDK Version

1.4.231115000

Framework

WinUI3/WinAppSDK

Operating System

Windows 10

OS Version

22621

Repro steps

Create a page with the webview2 and bind using communitywinui observablereceiptant, and create a binding and set a break point on the setter.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

1.4.231115000

@JohnDizzle JohnDizzle added the bug Something isn't working label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant