You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code generators fail to generate correct code for Bindings. Binding to a property marked with [ObservableProperty], will not reflect changes correctly. x:Bind works, but since this is not possible to use from a Control template, it is not a feasible workaround.
PropertyChanged event is raised as expected.
The project will build perfectly nice, but bindings will stop working, making it a very nasty bug to find!
I'm not entirely sure what is causing the problem, but building my test project (linked below) works using Visual Studio 17.10.6, but not using Visual Studio 17.12.0.
This is a screen shot of the running application, using Visual Studio 17.12.0:
screen1.mp4
And this is when running the exact same application using 17.10.6:
screen2.mp4
Note that the difference of Custom1 and Custom2 is that Custom1 control uses [ObservableProperty] while Custom2 has an explicit declaration of INotifyPropertyChanged.
In the UserControl1, the difference is using Binding vs x:Bind.
I've tried binding to a Visibility property to verify if it is a conversion bool/visibility-problem, but the same problem appear.
IDE and version
VS 2022
IDE version
17.10.6 vs 17.12.0
Nuget packages
CommunityToolkit.Common
CommunityToolkit.Diagnostics
CommunityToolkit.HighPerformance
CommunityToolkit.Mvvm (aka MVVM Toolkit)
Nuget package version(s)
8.3.2
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
The text was updated successfully, but these errors were encountered:
Describe the bug
Code generators fail to generate correct code for Bindings. Binding to a property marked with [ObservableProperty], will not reflect changes correctly. x:Bind works, but since this is not possible to use from a Control template, it is not a feasible workaround.
PropertyChanged event is raised as expected.
The project will build perfectly nice, but bindings will stop working, making it a very nasty bug to find!
I'm not entirely sure what is causing the problem, but building my test project (linked below) works using Visual Studio 17.10.6, but not using Visual Studio 17.12.0.
Regression
No response
Steps to reproduce
Please see project PropertyBindingTest.sln in repo https://github.com/bjorn-malmo/bug-free-happiness/.
Expected behavior
Expected Binding to reflect changes
Screenshots
This is a screen shot of the running application, using Visual Studio 17.12.0:
screen1.mp4
And this is when running the exact same application using 17.10.6:
screen2.mp4
Note that the difference of Custom1 and Custom2 is that Custom1 control uses [ObservableProperty] while Custom2 has an explicit declaration of INotifyPropertyChanged.
In the UserControl1, the difference is using Binding vs x:Bind.
I've tried binding to a Visibility property to verify if it is a conversion bool/visibility-problem, but the same problem appear.
IDE and version
VS 2022
IDE version
17.10.6 vs 17.12.0
Nuget packages
Nuget package version(s)
8.3.2
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
The text was updated successfully, but these errors were encountered: