Wrox Programmer Forums
|
BOOK: Professional Visual Studio 2010
This is the forum to discuss the Wrox book Professional Visual Studio 2010 by Nick Randolph, David Gardner, Chris Anderson, Michael Minutillo; ISBN: 9780470548653
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Visual Studio 2010 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 24th, 2011, 01:11 AM
Registered User
 
Join Date: Dec 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Post Ch 22 Navigation Framework

All is fine; I am simply wondering about source="/Home" class. Is this referring to the project root folder? Thank you for your attention to my simple questions.
 
Old January 2nd, 2012, 03:36 AM
Authorized User
 
Join Date: Aug 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, this value is being converted by the UriMapper to a path relative to the project root. See this article for some more information on how this happens: http://www.silverlightshow.net/items...Framework.aspx.

Hope this helps...

Chris Anderson
__________________
Chris Anderson
Co-author
 
Old January 10th, 2012, 06:09 AM
Registered User
 
Join Date: Dec 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Post CH 22 Navigation --- /Home, again

I looked at the example of a Frame object source property value on the link you mention. It shows Source="/Views/Home.xaml". In the book excercise, the value is Source="/Home", and then the uriMapper has the MappedUri property value which includes the "/Views/" in the path.

I guess that what you are saying is that, when "/Home" is used in the Frame Source property value when the browser is first launched, that value becomes the {pageName} value in the MappedUrl property value.

Then, when a page HyperlinkButton is pressed, the NavigateUrl property value becomes the {pageName} value in the UriMapper in the "ContentFrame".

Correct?
 
Old January 10th, 2012, 08:48 AM
Authorized User
 
Join Date: Aug 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, the UriMapper translates the input "/Home" to "/Views/Home.xaml".
__________________
Chris Anderson
Co-author





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 22 ImplicitStyleManager gisdev BOOK: Professional Visual Studio 2010 3 December 24th, 2011 12:24 AM
Ch 22: Silverlight Out of Box Applications gisdev BOOK: Professional Visual Studio 2010 2 December 23rd, 2011 03:06 AM
Beginning Javaservpages Exercise in Ch 22 I5commuter JSP Basics 1 June 12th, 2008 07:30 AM
Binding Navigator in Ch 22 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 August 4th, 2006 01:39 PM
SQL Express OK in Ch 22 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 August 4th, 2006 01:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.