Unable to programmatically set color of Shell icon in .Net 9 when FlyoutBehavior is disabled #27000
Labels
area-controls-shell
Shell Navigation, Routes, Tabs, Flyout
i/regression
This issue described a confirmed regression on a currently supported version
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
Prior to upgrading to .Net 9, I was able to programmatically change the color of a Shell icon using the following code in
AppShell.xaml.cs
:When using
Shell.FlyoutBehavior="Disabled"
with the following code, it results in the colors not being updated, but instead uses the colors set inStyles.xaml
(which I think was an issue before):However, when using
Shell.FlyoutBehavior="Flyout"
, the colors work fine...Have recreated issue in iOS simulator and MacCatalyst.
Steps to Reproduce
Update AppShell.xaml to replace the ShellContent with:
Shell.FlyoutBehavior="Disabled"
Link to public reproduction project repository
No response
Version with bug
9.0.10 SR1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.40 SR5
Affected platforms
iOS, macOS
Affected platform versions
Tested on iPhone simulators: 15 Plus (iOS 17.0) & 15 Pro (iOS 17.5)
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: