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

Fixed FlyoutItemIsVisible is not working with bindings #24212

Conversation

dhindrik
Copy link
Contributor

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

@dhindrik dhindrik requested a review from a team as a code owner August 13, 2024 13:25
Copy link
Contributor

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.

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Aug 13, 2024
@dhindrik dhindrik changed the title 24203 flyout item is visible is not working with bindings Fixed FlyoutItemIsVisible is not working with bindings Aug 13, 2024
@jfversluis
Copy link
Member

Since this introduces new APIs this should go into net9. Can you maybe retarget to the net9.0 branch?

@dhindrik dhindrik changed the base branch from main to net9.0 August 13, 2024 14:03
@dhindrik dhindrik requested a review from a team as a code owner August 13, 2024 14:03
@dhindrik dhindrik changed the base branch from net9.0 to main August 13, 2024 14:04
@dhindrik
Copy link
Contributor Author

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.

@dhindrik dhindrik force-pushed the 24203-FlyoutItemIsVisible-is-not-working-with-bindings branch from cb946e4 to f041ff3 Compare August 13, 2024 17:14
@dhindrik dhindrik changed the base branch from main to net9.0 August 13, 2024 17:15
@dhindrik
Copy link
Contributor Author

dhindrik commented Aug 13, 2024

@jfversluis I think I managed to fix it. It was easier than I thought. Is everything looking correct?

@jfversluis
Copy link
Member

jfversluis commented Aug 13, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@dhindrik dhindrik requested a review from PureWeen August 18, 2024 20:17
@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen merged commit a15cf9b into dotnet:net9.0 Aug 23, 2024
117 checks passed
@dhindrik dhindrik deleted the 24203-FlyoutItemIsVisible-is-not-working-with-bindings branch August 25, 2024 08:26
@samhouts samhouts added the fixed-in-net9.0-nightly This may be available in a nightly release! label Aug 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community ✨ Community Contribution fixed-in-net9.0-nightly This may be available in a nightly release!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FlyoutItemIsVisible is not working with bindings
4 participants