This project is read-only.


Navigation to pages in folders


I had a little issue while trying to use this service
Closed Jan 20, 2014 at 6:47 PM by paul_wade


sajayi wrote Jan 10, 2014 at 2:30 AM

The issue was that my views are in a folder called Views the Navigation Service looks for the view pages in the root folder of the application. Hence I had to customise the NavigationService class by modifying the path to the folder.

var testvalue = (type.FullName.Substring(type.FullName.IndexOf('.')).Replace('.', '/')) + ".xaml";
var testvalue = "/Views" + (type.FullName.Substring(type.FullName.IndexOf('.')).Replace('.', '/')) + ".xaml";

Hope this helps someone.

sajayi wrote Jan 11, 2014 at 9:32 AM

Seems I made a mistake, I forgot to update the namespace after moving the views. The code works flawlessly.

paul_wade wrote Jan 20, 2014 at 6:45 PM

Sorry I didn't see this sooner. Glad you got it working though.

paul_wade wrote Jan 20, 2014 at 6:46 PM

PS. I would be embarrassed to admin the number of times a namespace has gotten me when moving my views. This was especially true when I use caliburn.micro and its conventions are a bit more hidden. anyway...

wrote Jan 20, 2014 at 6:47 PM