Disable Runtime XAML Reload
How do I disable runtime reloading of XAML screens and resources while Unity playback is enabled? i.e. if I change a color in an XAML resources file, I *do not* want Noesis to reload screens.
Re: Disable Runtime XAML Reload
It is not only reloading, we also check for errors and more things.
Why do you want to disable it?
Why do you want to disable it?
Re: Disable Runtime XAML Reload
In 3.0.X, I could modify XAML and it would not affect my running game. In 3.1.x, changing any XAML file during Unity playback causes the runtime XAML to reload, which invalidates invariant state owned by the control. This then causes exceptions and errors which did not occur in 3.0.X.
Re: Disable Runtime XAML Reload
In the past, XAML reloading was disabled and almost nobody was using it so we couldn't fix many things in real-world scenarios. We decided to change this in 3.1 as hot-reloading is going to be more and more important in future versions. We have the compromise to prioritize all kind of issues related to hot-reloading.
We recommend moving all your state to the DataContext, that's the easiest solution. If that's not possible we also expose the Reload event to detect when hot-reloading is happening.
We recommend moving all your state to the DataContext, that's the easiest solution. If that's not possible we also expose the Reload event to detect when hot-reloading is happening.
Re: Disable Runtime XAML Reload
I have just created #2239 to track all issues and ideas for Hot-Reloading