Jul 16, 2013 at 9:28 PM
Edited Jul 16, 2013 at 9:28 PM
Sorry to hear that you are having some issues with the Okra App Framework. From your description it sounds like there is an issue with the construction and composition of your view-viewmodel pair. Without more insight into your code it's a bit hard to diagnose,
but I have a few ideas for you.
The first question I have is how are you currently navigating to the second page? In Okra you should always navigate using the INavigationManager.NavigateTo(...) methods (you get an INavigationManager from the INavigationContext). I assume that the INavigationContext
is available in the first page? As long as the Okra App Framework is responsible for creating the page, the view-model should be included automatically (unless something is going wrong).
The other thing to check is that the view-model is attributed with the [ViewModelAttribute("XXX")] where "XXX" is the same name used for the view.
One thing that might help you get started with the Okra App Framework is to try some of the project templates. You need to install the Okra App Framework Visual Studio Templates (see
] but then you should get a second set of new project templates specifically for Okra (see
for more information). These are a great way to get started learning the framework.
If you are still having problems and are able to share the code you are trying then I should be able to provide some more specific advice.