-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
There was a problem hiding this 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?
src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.Windows.cs
Outdated
Show resolved
Hide resolved
|
||
var animatedIcon = togglePaneButton.GetFirstDescendant<AnimatedIcon>(); | ||
|
||
if (animatedIcon is null) |
There was a problem hiding this comment.
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">
There was a problem hiding this comment.
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.
Description of Change
Allow to customize the Shell FlyoutIcon on Windows.
Issues Fixed
Fixes #7577