-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
ListBoxItem.IsSelected Binding does not work anymore with preview5 #10249
Comments
This is no longer working because it's dependent on the order in which the style is applied in respect to the Not sure what we should do here. If we want this to work, we'd have to think about how best to do it without being dependent on in which order
Is there any reason you can't use any of the existing explicitly supported mechanisms @llfab ? |
No, there is no reason. In fact, we already changed to |
If |
Ok, great. Yeah I'll add that to the list of things we need to document for 11.0. |
However, |
Going to reopen this as it's going to cause problems as people expect this to work. |
Describe the bug
I am binding a ListBoxItem's IsSelected property to my data model of the item as follows:
Originally I even had
to receive the changed selection directly in the items data model.
This has worked in preview4 but is not working anymore in preview5. As I checked in the Debugger, the IsEnabled property works nicely and the property getter in the data model is called. For IsSelected neither the getter nor the setter (if used with TwoWay) is called.
To Reproduce
as above
Expected behavior
Getter and setter for the data model property should be called
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: