-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixed FlyoutItemIsVisible is not working with bindings #24212
Fixed FlyoutItemIsVisible is not working with bindings #24212
Conversation
Hey there @dhindrik! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Since this introduces new APIs this should go into net9. Can you maybe retarget to the net9.0 branch? |
What is the best way to do it? I tried to change the PR, but then a lot of other commits were added to the PR. It would also be great to have this out before .net 9. But I guess not many people are using it like I want because I did not find any issues with it. |
cb946e4
to
f041ff3
Compare
@jfversluis I think I managed to fix it. It was easier than I thought. Is everything looking correct? |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
… for FlyoutItemIsVisible in BaseShellItem
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Description of Change
In the property for FlyoutItemIsVisible it used Shell.FlyoutItemIsVisibleProperty which is an attached property in the Shell class. But that will not work when trying to bind to FlyoutItemIsVisible because with bindings it is expected to find FlyoutItemIsVisibleProperty in the BaseShellItem class.
In the OnFlyoutItemIsVisibleChanged method I called the Shell.SetFlyoutItemIsVisible to update the attached property that was updated directly in the property before.
Issues Fixed
Fixes #24203