-
Notifications
You must be signed in to change notification settings - Fork 659
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
Labels
Comments
microsoft-github-policy-service
bot
added
the
needs-triage
Issue needs to be triaged by the area owners
label
May 13, 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! Open similar issues:
Closed similar issues:
|
Using Binding solves the issue, but still a bug. Might be slightly related to #7810. |
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
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
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
The text was updated successfully, but these errors were encountered: