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

Update Flyout when Shell.FlyoutContent changes #17359

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

spadapet
Copy link
Contributor

Description of Change

Shell.FlyoutContent allows users to change what the Shell's flyout looks like:

If FlyoutContent changed at runtime, the UI didn't update (either going to custom content, or reverting back to default content when setting FlyoutContent to null).

The update functionality was already there, like when IFlyoutView.Flyout changed, but that property was also exposed as Shell.FlyoutContent.

Issues Fixed

Fixes #9080 (Shell.FlyoutContent does not update with hot reload)

@spadapet spadapet added the partner/hot-reload-xaml Issues impacting XAML Hot Reload experiences label Sep 13, 2023
@spadapet spadapet self-assigned this Sep 13, 2023
@spadapet spadapet requested a review from a team as a code owner September 13, 2023 20:48
@samhouts samhouts added this to the Under Consideration milestone Sep 13, 2023
@spadapet
Copy link
Contributor Author

There is still an issue where removing the value of FlyoutContent the first time will not paint the default flyout text until the window is resized. Adding FlyoutContent always works. A different bug would be needed, or there may already be a bug, such as:

@spadapet spadapet enabled auto-merge (squash) September 13, 2023 22:13
@Eilon Eilon added the area-controls-shell Shell Navigation, Routes, Tabs, Flyout label Sep 14, 2023
@spadapet
Copy link
Contributor Author

Ping @PureWeen for review. I think this change is good even if first removing FlyoutContent on WinUI doesn't render the text. That can be solve separately.

Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

Can you add tests?

@PureWeen PureWeen modified the milestones: Under Consideration, .NET 8 GA Sep 24, 2023
@spadapet spadapet force-pushed the dev/peterspa/ShellFlyoutContentChange branch from 0346e41 to ed2a168 Compare September 25, 2023 17:50
@spadapet
Copy link
Contributor Author

looks good!

Can you add tests?

@PureWeen, test added

@rmarinho rmarinho closed this Sep 26, 2023
auto-merge was automatically disabled September 26, 2023 10:10

Pull request was closed

@rmarinho rmarinho reopened this Sep 26, 2023
@PureWeen PureWeen merged commit bb8a913 into main Sep 26, 2023
47 checks passed
@PureWeen PureWeen deleted the dev/peterspa/ShellFlyoutContentChange branch September 26, 2023 14:42
@PureWeen
Copy link
Member

/backport to release/8.0.1xx-rc2

@github-actions
Copy link
Contributor

Started backporting to release/8.0.1xx-rc2: https://github.com/dotnet/maui/actions/runs/6628466733

@PureWeen
Copy link
Member

/backport to release/8.0.1xx-rc2.1

@github-actions
Copy link
Contributor

Started backporting to release/8.0.1xx-rc2.1: https://github.com/dotnet/maui/actions/runs/6628705412

@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2023
@samhouts samhouts added the fixed-in-8.0.0-rc.2.9511 Look for this fix in 8.0.0-rc.2.9511 label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout fixed-in-8.0.0-rc.2.9511 Look for this fix in 8.0.0-rc.2.9511 partner/hot-reload-xaml Issues impacting XAML Hot Reload experiences
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shell.FlyoutContent does not update with hot reload (most likely an SDK issue)
5 participants