codemill.vmfirstnav | Xamarin.Forms ViewModel First Navigation Library | Form library
kandi X-RAY | codemill.vmfirstnav Summary
kandi X-RAY | codemill.vmfirstnav Summary
Xamarin.Forms ViewModel First Navigation Library
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of codemill.vmfirstnav
codemill.vmfirstnav Key Features
codemill.vmfirstnav Examples and Code Snippets
Community Discussions
Trending Discussions on codemill.vmfirstnav
QUESTION
So I am using the FreshMVVM Xamarin.Forms library so I can do ViewModel-first navigation in xamarin. My research tells me that this is a highly recommended practice, yet there seem to be not a whole lot of tutorials for this.
What I am trying to achieve is a login page that pops up as a modal once the user opens the app if they are not signed in.
I have modified the demo project slightly by adding the modal display button and associated Command
from the ViewModel to the first page, however, I am having trouble invoking this programmatically.
Here is what I am trying to so along with the relevant Command
code that I intend to tweak to work with a Login Page:
ANSWER
Answered 2018-Mar-27 at 00:55Okay, so first off, apologies for the confusion regarding the way I presented this and why I was using PushModalAsync
in I wanted to display a Login page. The reason for this is I was trying to modify the sample code in the repositories linked in the question in order to see how I would do this before transplanting it into the project I am working on.
After tinkering with this for quite a while, I realized that the reason .Execute();
was failing when I was calling it from the constructor with the key not found
error was because I was calling it from the constructor. Even after separating the navigation command into a separate method instead of using a lambda (see below) and calling that from the constructor wouldn't work because, from my understanding, the page hadn't been displayed yet and my NavigationService
therefore hadn't registered it or something.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install codemill.vmfirstnav
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page