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

[Windows] Allow to customize the Shell FlyoutIcon #14663

Merged
merged 21 commits into from
Jul 25, 2023
Merged

[Windows] Allow to customize the Shell FlyoutIcon #14663

merged 21 commits into from
Jul 25, 2023

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Allow to customize the Shell FlyoutIcon on Windows.

image

Issues Fixed

Fixes #7577

@jsuarezruiz jsuarezruiz added t/bug Something isn't working platform/windows 🪟 area-controls-shell Shell Navigation, Routes, Tabs, Flyout labels Apr 19, 2023
@jsuarezruiz jsuarezruiz changed the title [Windows] Allow to customize the Shell FlyoutIcon on Windows [Windows] Allow to customize the Shell FlyoutIcon Apr 19, 2023
@jsuarezruiz jsuarezruiz marked this pull request as ready for review June 22, 2023 09:35
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.

Can we add some tests as well?


var animatedIcon = togglePaneButton.GetFirstDescendant<AnimatedIcon>();

if (animatedIcon is null)
Copy link
Member

Choose a reason for hiding this comment

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

I'm running this locally and this is always null for me, and the icon isn't changing.

I tested on the sandbox

<Shell
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="Maui.Controls.Sample.SandboxShell"
    xmlns:local="clr-namespace:Maui.Controls.Sample"
    x:Name="shell"
    FlyoutIcon="dotnet_bot.png">

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have done some tests and I think have been an error doing fallback to the original icon. Fixed here 7766d4c

Tested on the Gallery and with Device tests.

@PureWeen PureWeen merged commit 538a8a2 into main Jul 25, 2023
39 checks passed
@PureWeen PureWeen deleted the fix-7577 branch July 25, 2023 21:02
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.7.8842 Look for this fix in 8.0.0-preview.7.8842! 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-preview.7.8842 Look for this fix in 8.0.0-preview.7.8842! platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FlyoutIcon does not work on Windows, although it works on Android
3 participants