Skip to content

Avalonia Mobile, open pages #15652

Answered by thevortexcloud
bsdRuf asked this question in Q&A
Discussion options

You must be logged in to vote

I would need a declared variable of every ViewModel I may need?

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.

Since the desktop has Show and ShowDialog I feel like on the mobile side something is missing.

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…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@bsdRuf
Comment options

@thevortexcloud
Comment options

@bsdRuf
Comment options

Answer selected by bsdRuf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants