w-ahmad / WinUI.TableView

A light weight TableView component for WinUI3
MIT License
136 stars 9 forks source link

XAML Hot Reload Support #20

Open Bush-cat opened 5 months ago

Bush-cat commented 5 months ago

Could we possibly fix XAML hot reload?

When you make changes to the Xaml while using Hot Reload, you will encounter a Warning: This change is not supported by XAML Hot Reload and will not be applied during the debugging session. or Error: Failed to retrieve the child at index 5.

Also the debugger stops working when using the live preview on the tables.

Thank you for your work on TableView! This Addition is not essential for me but it would make working in XAML easier.

w-ahmad commented 3 months ago

I believe this is the limitation of the HotReload for the WinUI at the time. I tried a couple of things, but this doesn't work.

w-ahmad commented 1 day ago

I've just learned that Xaml Hot Reload can work if TableViewColumnsCollection inherits from DependencyObjectCollection. It seems like a significant effort is needed, but I'm willing to implement it in v1.3.0