[Custom Control] HotReload doesn't work for newly added nested items
See original GitHub issueDescription
Continuation of https://github.com/dotnet/maui/issues/10390, but I’ve implemented IVisualTreeElement. Only now the HotReload works for items defined in XAML at launch, but doesn’t work for items added via HotReload.
I’ve noticed the IReadOnlyList<IVisualTreeElement> IVisualTreeElement.GetVisualChildren() method is not called when adding new nested items, maybe I should handle collection changes somehow so it’s called, @PureWeen?
Steps to Reproduce
Watch the video
Link to public reproduction project repository
https://github.com/the8thC/ElementVisuaElementHotReload
Version with bug
7.0 Release Candidate 2
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, I was not able test on other platforms
Affected platform versions
iOS 16, Android API 32
Did you find any workaround?
Remove and add the whole parent control and HotReload works for all items
Relevant log output
No response
Issue Analytics
- State:
- Created a year ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
Xamarin Forms - Custom Control with Hot Reload
Hi to all, I want to create a custom control ( possible with content view ) that is able to work with Hot...
Read more >my hot reload didn't work - Developer Community
I install last version of VS (2019-V16.11.3) and at first Hot Reload Work properly but I don't know why didn't work now. it's...
Read more >XAML Hot Reload Error after upgrading VS
Using the PRISM Xamarin, I created a mobile project. Compile the project; Attempt to debug the project. The project will deploy in the...
Read more >Nested react router component doesn't load/render on ...
I have been learning react for past few weeks. And now I'm having an issue that when I reload the page using browser...
Read more >Hot Deploy and Live Reload | Configuration
Live reload and hot deploy together take care of automatically applying source code changes, instead of having to manually restart the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Before we close it, we should probably consider documenting this somewhere (Creating custom controls and writing IVisualTreeElement overrides), so others don’t get bit by the same thing. @Redth Is this possible to have this done? Maybe for the backlog?
Thanks!