Updating shell Tab title doesn't work via Hot Reload / code behind #15659
Labels
area-controls-shell
Shell Navigation, Routes, Tabs, Flyout
area-tooling
XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging
delighter
fixed-in-8.0.0-rc.1.9171
Look for this fix in 8.0.0-rc.1.9171
p/2
Work that is important, but is currently not scheduled for release
partner/hot-reload-xaml
Issues impacting XAML Hot Reload experiences
t/bug
Something isn't working
Milestone
Description
When using Tabs in Shell and updating the Title, the updates aren't reflected in the app using Hot Reload, not until something else triggers a refresh of the page.
@YBTopaz8 mentioned this on a customer call with me, as one of the features he sees that doesn't work with Hot Reload. It happens in his full app here: https://github.com/YBTopaz8/FlowHub-MAUI and I reproduced the problem with the steps below.
Steps to Reproduce
AppShell.xaml
and replace the contents with following, to create multiple FlyoutItem TabsHome2
andFlow Outs2
Result:
The tab title updates are applied in the app. However, if you navigate to a new tab to refresh the UI, you see the updates.
Normally this behavior means that the property update was applied fine via Hot Reload, but there's an issue on the MAUI SDK side where it doesn't trigger the UI refresh for it. Normally, this type of problem also happens when changing the property via code behind (which does the same thing as the Hot Reload code) - I didn't actually test that to confirm, but it's the probably the case.
Link to public reproduction project repository
n/a
Version with bug
7.0.86
Last version that worked well
Unknown/Other
Affected platforms
I was not able test on other platforms
Affected platform versions
net7.0-windows10.0.19041.0, though likely all platforms are affected
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: