Open etvorun opened 2 years ago
I believe the root of this problem is how ListView handles child elements, which is the same as Xamarin.Forms https://github.com/xamarin/Xamarin.Forms/issues/14277.
When XAML Hot Reload checks for child elements, we use 'IVisualTreeElement' and get the visual children from the parent. This is implemented on the base element, but ListView doesn't store its children there. It has its own internal lists.
@etvorun had pointed out ItemsView and that this could be the place to implement that interface.
Thanks for the issue report @etvorun! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.
If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.
This issue will be automatically closed in 3 days if there are no further comments.
@jfversluis I do not believe this is a Visual Studio bug, but a MAUI one. https://github.com/xamarin/Xamarin.Forms/issues/14277
This can only be fixed if IVisualTreeElement is implemented for ItemsView or ListView. If it's not, XAML Hot Reload can't work for those controls.
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
I am going to spike what it would take to fix this. It is a significant enough control that it's worth exploring it.
Verified this issue with Visual Studio 17.7.0 Preview 1.0. Can repro on windows platform with above project. MauiApp1.zip
Description
XAML Hot Reload does not work when editing DataTemplate used by ListView
Steps to Reproduce
Version with bug
6.0.408
Last version that worked well
Unknown/Other
Affected platforms
Windows, I was not able test on other platforms
Affected platform versions
Windows
Did you find any workaround?
No response
Relevant log output
No response