Replies: 2 comments 2 replies
-
Now it has been successfully compiled, and I found through ilspy that even if it is an Ava resource, it is still not an embedded resource file after compilation, but a C # file that is a C # object! This indicates that the processing methods of Ava and WPF are completely different. They do not have real embedded resources, so they do not have real navigation based on embedded resources. Therefore, it is impossible to achieve unmanaged, data styled dynamic page cutting navigation, at least not currently. Not having this feature means that there will be a lot of GC pressure when navigating multiple pages, and it may lead to excessive memory consumption |
Beta Was this translation helpful? Give feedback.
-
What makes you think loaded baml isn't ending up as objects that are producing any memory pressure? |
Beta Was this translation helpful? Give feedback.
-
Having this feature is very important, as it allows navigation through different "pages" using only data and styles. As far as I know, Avalonia compiles XAML into C # instead of WPF BAML, which is a file and not always stored in memory. True navigation is based on this feature, where it is only in memory when resources are loaded and cleared from memory when resources are unloaded. Therefore, I believe that Avalonia needs a mechanism and functionality similar to pack URI, which is clearly indispensable.
Beta Was this translation helpful? Give feedback.
All reactions