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

x:Bind with Mode=OneTime triggers multiple times #9630

Open
Mangepange opened this issue May 13, 2024 · 2 comments
Open

x:Bind with Mode=OneTime triggers multiple times #9630

Mangepange opened this issue May 13, 2024 · 2 comments
Labels
area-Binding bug Something isn't working team-Markup Issue for the Markup team

Comments

@Mangepange
Copy link

Describe the bug

I have an x:Bind with its mode set to OneTime, and it fetches its value three times. I first noticed this issue with a TabView, when a binding in my DataTemplate for a TabViewItem triggered multiple times. But I've tried to create a simpler example.

Steps to reproduce the bug

image
image
image

The Text-binding for the TextBlock within the DataTemplate triggers 3 times, and thus the displayed text is "A text 3".
The UserControl is put directly into a Window, and nothing ever changes.

Expected behavior

The binding should only be triggered once, and the displayed text should read "A text 1"

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.3: 1.5.240428000

Windows version

No response

Additional context

No response

@Mangepange Mangepange added the bug Something isn't working label May 13, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label May 13, 2024
Copy link

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!

Open similar issues:

Closed similar issues:

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

@Mangepange
Copy link
Author

Using Binding solves the issue, but still a bug. Might be slightly related to #7810.

@codendone codendone added area-Binding team-Markup Issue for the Markup team and removed needs-triage Issue needs to be triaged by the area owners labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Binding bug Something isn't working team-Markup Issue for the Markup team
Projects
None yet
Development

No branches or pull requests

2 participants