Avalonia Mobile, open pages #15652
-
Hello, I've seen the tutorial page to navigate views. Just to be sure. I would need a declared variable of every ViewModel I may need? To access the functions that are inside because the Do we have a copy pastable (from a example or sth) for the back button? What do you think would be the best approach to make the back button work? Have a history list of the viewmodels called and overrite the back button? Since the desktop has Show and ShowDialog I feel like on the mobile side something is missing. Thanks for all the samples, they helped out quite a few times. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Depends on how you implement it. You can do it that way, but it gets fairly big and unwieldy. For larger apps you typically use a router. ReactiveUI for example has one built in that supports history: https://docs.avaloniaui.net/docs/concepts/reactiveui/routing Otherwise it's not that hard to make your own.
You need to implement dialogues yourself for SPA. You can use helper libraries like DialogHost though. https://github.com/AvaloniaUtils/DialogHost.Avalonia You can also use other libraries built around it, like the material theme, which will also give you something that looks like a native android app. |
Beta Was this translation helpful? Give feedback.
-
todolist is desktop only for the moment. It uses windowing system, which mobile doesn't have. Note This tutorial was done when we didn't have a mobile backend. |
Beta Was this translation helpful? Give feedback.
Depends on how you implement it. You can do it that way, but it gets fairly big and unwieldy. For larger apps you typically use a router. ReactiveUI for example has one built in that supports history:
https://docs.avaloniaui.net/docs/concepts/reactiveui/routing
Otherwise it's not that hard to make your own.
You need to implement dialogues yourself for SPA. You can use helper libraries like DialogHost though.
https://github.com/AvaloniaUtils/DialogHost.Avalonia
You can also use other libraries built around it, like the material t…